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

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

        return false;
    }
public function hasDatabase ( $ name ) { foreach ( $ this -> databases as $ database ) { if ( $ database -> getName ( ) === $ name ) { return true ; } } return false ; }
Returns whether or not a database with the specified name exists in this
schema.

@param  string  $name
@return boolean
Returns whether or not a database with the specified name exists in this schema .