original_string: protected function isError($key = null)
      {
          if (!isset($key)) {
              return !empty($this->errors);
          }
  
          $result = $this->getError($key);
          return !empty($result);
      }
code: protected function isError($key = null)
      {
          if (!isset($key)) {
              return !empty($this->errors);
          }
  
          $result = $this->getError($key);
          return !empty($result);
      }
code_tokens: protected function isError ( $ key = null ) { if ( ! isset ( $ key ) ) { return ! empty ( $ this -> errors ) ; } $ result = $ this -> getError ( $ key ) ; return ! empty ( $ result ) ; }
docstring: Whether an error exists
  @param string|null $key
  @return boolean
docstring_tokens: Whether an error exists