private static Boolean ContainsContentType(IEnumerable <HarshContentTypeId> ids, ContentType ct) { var ctid = HarshContentTypeId.Get(ct); return(ids.Any(id => ctid.IsDirectChildOf(id))); }