public static bool IsNullOrEmpty([CanBeNull] this ICollection list) { return list == null || list.Count == 0; } }