original_string: private function _isValidResponse($response)
      {
          if (is_null($response)) {
              return self::ERROR_EMPTY;
          }
  
          if (!isset($response->result) or ($response->result != 'error')) {
              return true;
          }
  
          return $response->message;
      }
code: private function _isValidResponse($response)
      {
          if (is_null($response)) {
              return self::ERROR_EMPTY;
          }
  
          if (!isset($response->result) or ($response->result != 'error')) {
              return true;
          }
  
          return $response->message;
      }
code_tokens: private function _isValidResponse ( $ response ) { if ( is_null ( $ response ) ) { return self :: ERROR_EMPTY ; } if ( ! isset ( $ response -> result ) or ( $ response -> result != 'error' ) ) { return true ; } return $ response -> message ; }
docstring: Check if the request was successfull.
  
  @param mixed $response
  @return bool|int
docstring_tokens: Check if the request was successfull .