public static boolean isBool(String value){
  return value != null && (value.equals("true") || value.equals("false"));
}

public static boolean isBool ( String value ) { return value != null && ( value . equals ( "true" ) || value . equals ( "false" ) ) ; }
indicates if the provided string argument is to be considered as a boolean , more specifically if it equals " true " or " false " .
