public static boolean isNotEmpty(List<Object> list){
  return !list.isEmpty();
}

public static boolean isNotEmpty ( List < Object > list ) { return ! list . isEmpty ( ) ; }
returns true if list if not empty .
