/** * * @return bool */ private function check() { if (!$this->_request->isResponseExists()) { throw new QueryException('Not have response'); } if ($this->isError()) { $this->error(); } return true; }