public static bool IsEmpty(this ICollection collection) { return (collection == null || collection.Count == 0); }