original_string: public static function boolean($check, array $booleanValues = [])
      {
          if (!$booleanValues) {
              $booleanValues = [true, false, 0, 1, '0', '1'];
          }
  
          return in_array($check, $booleanValues, true);
      }
code: public static function boolean($check, array $booleanValues = [])
      {
          if (!$booleanValues) {
              $booleanValues = [true, false, 0, 1, '0', '1'];
          }
  
          return in_array($check, $booleanValues, true);
      }
code_tokens: public static function boolean ( $ check , array $ booleanValues = [ ] ) { if ( ! $ booleanValues ) { $ booleanValues = [ true , false , 0 , 1 , '0' , '1' ] ; } return in_array ( $ check , $ booleanValues , true ) ; }
docstring: Validates if passed value is boolean-like.
  
  The list of what is considered to be boolean values, may be set via $booleanValues.
  
  @param bool|int|string $check Value to check.
  @param array $booleanValues List of valid boolean values, defaults to `[true, false, 0, 1, '0', '1']`.
  @return bool Success.
docstring_tokens: Validates if passed value is boolean - like .