public static boolean hasEntry ( Object list ) { if ( list == null ) return false ; if ( list instanceof List ) return ! ( ( List < ? > ) list ) . isEmpty ( ) ; return true ; }
Simple utility method to test if List has at least 1 entry .