Verifique que IEnumerable no esté vacío
public static class Utils {
public static bool IsAny<T>(this IEnumerable<T> data) {
return data != null && data.Any();
}
}
Upvote answer :-)