adapter) { throw new Exception\RuntimeException('No database adapter present'); } $valid = true; $this->setValue($value); $result = $this->query($value); if ($result) { $valid = false; $this->error(self::ERROR_RECORD_FOUND); } return $valid; } }