src/Replies/Reply.php
public function has($key)
    {
        if ($key == 'message') {
            return !empty($this->message);
        }

        if ($key == 'exception') {
            return !is_null($this->exception);
        }

        return array_key_exists($key, $this->payload);
    }
public function has($key)
    {
        if ($key == 'message') {
            return !empty($this->message);
        }

        if ($key == 'exception') {
            return !is_null($this->exception);
        }

        return array_key_exists($key, $this->payload);
    }
public function has ( $ key ) { if ( $ key == 'message' ) { return ! empty ( $ this -> message ) ; } if ( $ key == 'exception' ) { return ! is_null ( $ this -> exception ) ; } return array_key_exists ( $ key , $ this -> payload ) ; }
Determine if a value exists within this object
@param  string $key
@return void
Determine if a value exists within this object