code: public static <T> List<T> emptyToNull(final List<T> list) {
          if (isEmpty(list)) {
              return null;
          } else {
              return list;
          }
      }
docs: Returns null, when the given list is empty or null
  
  @param list The list to process
  @return null when the list is empty or null, the given list otherwise