public static boolean isEmpty(Collection<?> collection){
  return collection == null || collection.isEmpty();
}

public static boolean isEmpty ( Collection < ? > collection ) { return collection == null || collection . isEmpty ( ) ; }
determines whether the collections is null or empty .
