/** * @param string $sDomainName * * @return bool */ public function domainExists($sDomainName) { $bResult = false; if ($this->oConnection->Execute($this->oCommandCreator->domainExists($sDomainName))) { $oRow = $this->oConnection->GetNextRecord(); if ($oRow) { $bResult = 0 < (int) $oRow->domains_count; } $this->oConnection->FreeResult(); } $this->throwDbExceptionIfExist(); return $bResult; }