private static bool IsNullOrEmpty(ICollection collection) { return collection == null || (collection.Count == 0); }