/** * @param string $pref * @param string $tablename * @return bool */ function IsTableExist($pref, $tablename) { if (!$this->_dbConnection->Execute($this->_commandCreator->AllTableNames())) { return false; } while ($array = $this->_dbConnection->GetNextArrayRecord()) { if ($array && $array[0] && $array[0] == $pref . $tablename) { return true; } } return false; }