original_string: public function isError($key = null)
      {
          $value = $this->getError($key);
          return is_array($value) ? !empty($value) : isset($value);
      }
code: public function isError($key = null)
      {
          $value = $this->getError($key);
          return is_array($value) ? !empty($value) : isset($value);
      }
code_tokens: public function isError ( $ key = null ) { $ value = $ this -> getError ( $ key ) ; return is_array ( $ value ) ? ! empty ( $ value ) : isset ( $ value ) ; }
docstring: Whether a error exists
  @param null|string $key
  @return boolean
docstring_tokens: Whether a error exists