original_string: public function isValid()
      {
          if (empty($this->jsonrpc)) {
              return false;
          }
  
          if (empty($this->method) || !is_string($this->method)) {
              return false;
          }
  
          if (!empty($this->params) && !is_array($this->params)) {
              return false;
          }
  
          return true;
      }
code: public function isValid()
      {
          if (empty($this->jsonrpc)) {
              return false;
          }
  
          if (empty($this->method) || !is_string($this->method)) {
              return false;
          }
  
          if (!empty($this->params) && !is_array($this->params)) {
              return false;
          }
  
          return true;
      }
code_tokens: public function isValid ( ) { if ( empty ( $ this -> jsonrpc ) ) { return false ; } if ( empty ( $ this -> method ) || ! is_string ( $ this -> method ) ) { return false ; } if ( ! empty ( $ this -> params ) && ! is_array ( $ this -> params ) ) { return false ; } return true ; }
docstring: Is valid.
  
  @return boolean
docstring_tokens: Is valid .