public static bool HasEntities(IList entities) { return ( entities != null && entities.Count > 0 ); }