Check if an alias exists.

@param string $name
@return bool
550324
protected function isAliasExists($name)
    {
        $payload = (new RawPayload())
            ->set('name', $name)
            ->get();

        return ElasticClient::indices()
            ->existsAlias($payload);
    }
1330385
public function exists($name)
    {
        if (isset($this->extraTemplates[$name])) {
            return true;
        }

        return $this->base->exists($name);
    }
127786
public function offsetExists($name)
    {
        if (is_int($name)) {
            return parent::offsetExists($name);
        }

        $name = strtoupper($name);

        foreach ($this->parameters as $parameter) {
            if ($parameter->name == $name) {
                return true;
            }
        }

        return false;
    }
1226528
public function has($name)
    {
        if (! isset($this->instances[$name])) {
            return isset($this->registry[$name]);
        }

        return true;
    }
1277005
public function getAlias($name)
        {
            if (isset($this->_aliases[$name])) {
                return $this->_aliases[$name];
            }

            return null;
        }
302146
public function has(string $name): bool
    {
        $parts = explode('[', $name);
        $lastKey = trim(array_pop($parts), ']');
        $current = &$this->parameters;
        foreach ($parts as $part) {
            $target = trim($part, ']');
            if (!is_array($current) || !array_key_exists($target, $current)) {
                return false;
            }

            $current = &$current[$target];
        }

        if (!array_key_exists($lastKey, $current)) {
            return false;
        }

        return true;
    }
277679
public function hasSubsidiary($name)
    {
        $class = $this->getSubsidiaryClass($name);
        if (empty($class)) {
            return false;
        }
        $query = $class::find();
        if (!method_exists($query, 'createdBy')) {
            return false;
        }
        return $query->createdBy($this)->exists();
    }
402986
public static function exists($name)
    {
        static::isOn(true);

        if (!isset(static::$register[$name])) {
            return false;
        } else {
            $item = static::$register[$name];

            return $item['lifetime'] > time() || $item['lifetime'] == 0;
        }
    }
1173003
public function exists($name)
    {
        $file = $this->cacheFileNameGenaretor($name);
        $file = $this->inPath($file);

        if($this->exists($file)){
            return true;
        }else{
            return false;
        }
    }
163526
public function has($name)
        {
            return Arrays::exists($name, $this->options) && false === empty($this->options[$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;
    }
100096
public function exists($name)
    {
        $suffix = '.twig';
        $endsWithSuffix = strtolower(substr($name, -\strlen($suffix))) === $suffix;

        return !$endsWithSuffix;
    }
1166245
public function propertyExists($name)
    {
        $properties = $this->getProperties();
        return empty($properties) || in_array($name, $properties);
    }
34683
public function exists($alias, $config = array())
	{
		return false !== $this->cache->get($alias,isset($config['cache_cb']) ? $config['cache_cb'] : null,isset($config['cas_token']) ? $config['cas_token'] : null);
	}
799889
public function has($name)
    {
        if (isset($this->cookies[$name]) || isset($_COOKIE[$name])) {
            return true;
        }

        return false;
    }
293882
public function has(string $name): bool
    {
        try {
            $this->dotGet($name);
        } catch (DotNotFoundException $e) {
            return false;
        }

        return true;
    }
530019
public function has($name)
    {
        $names = is_array($name) ? $name : func_get_args();

        foreach ($names as $value) {
            if (! $this->routes->hasNamedRoute($value)) {
                return false;
            }
        }

        return true;
    }