private boolean hasItems(Collection<? extends Object> col){
  return col != null && !col.isEmpty();
}

private boolean hasItems ( Collection < ? extends Object > col ) { return col != null && ! col . isEmpty ( ) ; }
a simple util to to check for null and empty on a collection
