original_string: protected function hasError($body)
      {
          if ($this->hasAResponseMessage($body) && $this->hasProperty($this->getFirstMessage($body), 'status')) {
              $firstMessage = $this->getFirstMessage($body);
  
              return (int) $firstMessage['status'] !== 0;
          }
  
          return false;
      }
code: protected function hasError($body)
      {
          if ($this->hasAResponseMessage($body) && $this->hasProperty($this->getFirstMessage($body), 'status')) {
              $firstMessage = $this->getFirstMessage($body);
  
              return (int) $firstMessage['status'] !== 0;
          }
  
          return false;
      }
code_tokens: protected function hasError ( $ body ) { if ( $ this -> hasAResponseMessage ( $ body ) && $ this -> hasProperty ( $ this -> getFirstMessage ( $ body ) , 'status' ) ) { $ firstMessage = $ this -> getFirstMessage ( $ body ) ; return ( int ) $ firstMessage [ 'status' ] !== 0 ; } return false ; }
docstring: Checks if the transaction has an error.
  
  @param $body
  
  @return bool
docstring_tokens: Checks if the transaction has an error .