function IsInternalAccountExist($login) { $return = false; if ($this->_connector->Execute($this->_commandCreator->IsInternalAccountExist($login))) { $row = $this->_connector->GetNextArrayRecord(); if (isset($row['acount'])) { $return = (int) $row['acount'] > 1; } } return $return; }