code: public static <T> T first(List<T> items) {
          if(items != null && items.size() > 0) {
              return items.get(0);
          }
  
          return null;
      }
docs: Returns the first item in a list if possible, returning null otherwise.
  
  @param items the list
  @param <T> the type of items in the list
  @return the first item in the list if the list is not null and not empty, null otherwise