Returns whether or not a database with the specified name exists in this
schema.

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

        return false;
    }
369699
public function hasTable($tableName)
    {
        if ($tableName instanceof Model) {
            $tableName = $tableName->tableName();
        }

        return $this->connection->getSchemaManager()->tablesExist([$tableName]);
    }
198188
public function hasField(string $name) : bool
    {
        return isset($this->fields[$name]) && $this->fields[$name];
    }
593855
public function exists($name)
    {
        if ($this->existsOnSpace(null, $name)) {
            return true;
        }

        foreach ($this->spacePaths as $space => $path) {
            if ($this->existsOnSpace($space, $name)) {
                return true;
            }
        }

        return false;
    }
1005043
public function has($name) {
		if (isset($this->factories_[$name])) {
			return true;
		}
		if (substr($name, -1) === '_') {
			return false;
		}
		return (bool)property_exists($this, $name);
	}
827014
public function has($name) {
        $field = Condition::safeField($name);

        return isset ($this->names [ $field ]);
    }
1118633
public function has($name): bool
    {
        $name = $this->getCacheKey($name);

        $sql    = 'SELECT value FROM ' . $this->options['table'] . ' WHERE var=\'' . $name . '\' AND (expire=0 OR expire >' . time() . ') LIMIT 1';
        $result = sqlite_query($this->handler, $sql);

        return sqlite_num_rows($result);
    }
794605
public function has($name)
    {
        /** @var Setting $setting */
        $setting = $this->repo->findOneBy(['name.name' => $name]);

        if ($setting) {
            return true;
        }

        return false;
    }
512819
public function has($name)
    {
        $name = self::normalizeName($name);

        if (strpos($name, '[') !== false) {
            $names = explode('[', str_replace(']', '', $name));
            $key = array_shift($names);
            $item = isset($this->parameters[$key]) ? $this->parameters[$key] : [];

            foreach ($names as $key) {
                if (!isset($item[$key])) {
                    return false;
                }

                $item = $item[$key];
            }

            return !empty($item);
        }

        return !empty($this->parameters[$name]);
    }
90127
public function has($name)
    {
        $value = $this->get($name);

        return isset($value) ? $value : false;
    }
783725
public function existDatabase(string $dbName): bool
    {
        $sql = 'SELECT SCHEMA_NAME
            FROM INFORMATION_SCHEMA.SCHEMATA
            WHERE SCHEMA_NAME = %s;';

        $sql = sprintf($sql, $this->quoter->quoteValue($dbName));
        $row = $this->db->query($sql)->fetch(PDO::FETCH_ASSOC);

        return !empty($row['SCHEMA_NAME']);
    }
610650
public static function has($name)
    {
        empty(self::$init) && self::init();

        return isset($_SESSION[$name]) ? true : false;
    }
1319624
public function hasServer(string $name = null): bool
    {
        if (is_null($name)) {
            return $this->exists('server');
        }

        return $this->exists('server', $name);
    }
189269
public function has($name): bool
    {
        try {
            $this->container->get($name);

            return true;
        } catch (\Exception $e) {
            return false;
        }
    }
374004
public function exists($name)
    {
        $name = preg_replace('#/{2,}#', '/', strtr($name, '\\', '/'));
        $exists = parent::exists($name);
        $readable = false;
        if (true === $exists) {
            $readable = is_readable($this->cache[$name]);
        }

        return $readable;
    }
361849
public static function exists($name)
	{
		if(isset(self::$modifys[$name]))
		{
			return true;
		}
		else if(array_key_exists($name,self::$modifys))
		{
			return false;
		}
		else
		{
			self::init();
			self::save();
			$names = parseCfgName($name);
			$var = $_SESSION;
			foreach($names as $name)
			{
				if('@' === $name)
				{
					$name = self::$prefix;
				}
				if('' !== $name)
				{
					$var = $var[$name];
				}
			}
			return isset($var);
		}
	}
1203209
public function hasPlaylist(string $name): bool
    {
        $playlists = $this->getPlaylists();
        foreach ($playlists as $playlist) {
            if ($playlist->getName() === $name) {
                return true;
            }
            if (strtolower($playlist->getName()) === strtolower($name)) {
                return true;
            }
        }

        return false;
    }