public static boolean isNullOrEmpty(@Nullable Collection collection){
  return collection == null || collection.isEmpty();
}

public static boolean isNullOrEmpty ( @ Nullable Collection collection ) { return collection == null || collection . isEmpty ( ) ; }
checks whether or not a collection is null or empty
