public static boolean isBoolean(final String param){
  if (isEmpty(param)) {
    return false;
  }
  return param.equalsIgnoreCase("true") || param.equalsIgnoreCase("false");
}

public static boolean isBoolean ( final String param ) { if ( isEmpty ( param ) ) { return false ; } return param . equalsIgnoreCase ( "true" ) || param . equalsIgnoreCase ( "false" ) ; }
checks if is boolean .
