public function hasDatabase($name)
    {
        foreach ($this->dbList as $db) {
            if ($db->getName() === $name) {
                return true;
            }
        }

        return false;
    }
public function hasDatabase($name)
    {
        foreach ($this->dbList as $db) {
            if ($db->getName() === $name) {
                return true;
            }
        }

        return false;
    }
public function hasDatabase ( $ name ) { foreach ( $ this -> dbList as $ db ) { if ( $ db -> getName ( ) === $ name ) { return true ; } } return false ; }
Checks whether a database with the specified nam exists in this AppData

@param string $name database name

@return boolean
Checks whether a database with the specified nam exists in this AppData