src/Widop/Twitter/OAuth/OAuthResponse.php
public function hasData($name = null)
    {
        if ($name !== null) {
            return is_array($this->data) && isset($this->data[$name]);
        }

        return !empty($this->data);
    }
public function hasData($name = null)
    {
        if ($name !== null) {
            return is_array($this->data) && isset($this->data[$name]);
        }

        return !empty($this->data);
    }
public function hasData ( $ name = null ) { if ( $ name !== null ) { return is_array ( $ this -> data ) && isset ( $ this -> data [ $ name ] ) ; } return ! empty ( $ this -> data ) ; }
Checks if there is data or a specific data.

@param string $name The data name.

@return boolean TRUE if there is data else FALSE.
Checks if there is data or a specific data .