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;
    }
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;
    }
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 ; }
Checks if the transaction has an error.

@param $body

@return bool
Checks if the transaction has an error .