original_string: protected function validateBool($field)
      {
          $value = $this->getSubmitted($field);
  
          if (!isset($value)) {
              $this->unsetSubmitted($field);
              return null;
          }
  
          $this->setSubmitted($field, (int) filter_var($value, FILTER_VALIDATE_BOOLEAN));
          return true;
      }
code: protected function validateBool($field)
      {
          $value = $this->getSubmitted($field);
  
          if (!isset($value)) {
              $this->unsetSubmitted($field);
              return null;
          }
  
          $this->setSubmitted($field, (int) filter_var($value, FILTER_VALIDATE_BOOLEAN));
          return true;
      }
code_tokens: protected function validateBool ( $ field ) { $ value = $ this -> getSubmitted ( $ field ) ; if ( ! isset ( $ value ) ) { $ this -> unsetSubmitted ( $ field ) ; return null ; } $ this -> setSubmitted ( $ field , ( int ) filter_var ( $ value , FILTER_VALIDATE_BOOLEAN ) ) ; return true ; }
docstring: Convert different values into boolean
  @param mixed $field
  @return bool|null
docstring_tokens: Convert different values into boolean