public function exists( $key ) {
		return ( is_array( $this->data ) && array_key_exists( $key, $this->data ) ) ||
			( is_object( $this->data ) && property_exists( $this->data, $key ) );
	}
public function exists( $key ) {
		return ( is_array( $this->data ) && array_key_exists( $key, $this->data ) ) ||
			( is_object( $this->data ) && property_exists( $this->data, $key ) );
	}
public function exists ( $ key ) { return ( is_array ( $ this -> data ) && array_key_exists ( $ key , $ this -> data ) ) || ( is_object ( $ this -> data ) && property_exists ( $ this -> data , $ key ) ) ; }
Check if the given key exists on the current data.

@param string $key

@return bool
Check if the given key exists on the current data .