original_string: public function has_data($idx=null)
  	{
      if ( !\is_array($this->data) ){
        return false;
      }
      if ( \is_null($idx) ){
        return !empty($this->data);
      }
      $args = \func_get_args();
      foreach ( $args as $arg ){
        if ( !isset($this->data[$idx]) ){
          return false;
        }
      }
      return true;
  	}
code: public function has_data($idx=null)
  	{
      if ( !\is_array($this->data) ){
        return false;
      }
      if ( \is_null($idx) ){
        return !empty($this->data);
      }
      $args = \func_get_args();
      foreach ( $args as $arg ){
        if ( !isset($this->data[$idx]) ){
          return false;
        }
      }
      return true;
  	}
code_tokens: public function has_data ( $ idx = null ) { if ( ! \ is_array ( $ this -> data ) ) { return false ; } if ( \ is_null ( $ idx ) ) { return ! empty ( $ this -> data ) ; } $ args = \ func_get_args ( ) ; foreach ( $ args as $ arg ) { if ( ! isset ( $ this -> data [ $ idx ] ) ) { return false ; } } return true ; }
docstring: Checks if data exists or if a specific index exists in the data
  
  @return bool
docstring_tokens: Checks if data exists or if a specific index exists in the data