public function checkHash($error = true) {
		if (!isset($this->request->query[$this->_config['hashField']]) && $error) {
			throw new NotFoundException();
		}

		$result = $this->request->query[$this->_config['hashField']] == $this->getHash();

		if (!$result && $error) {
			throw new NotFoundException();
		}

		return $result;
	}