Returns true if object supports attribute $name.

@param string $name

@return bool
557997
public function hasAttribute($name)
    {
        return
            isset($this->attributesMap[$name])
            && (
                $this->attributesMap[$name] instanceof \Closure
                || isset($this->valueObject->{$this->attributesMap[$name]})
            );
    }
267485
public function supports($name)
    {
        if (!isset($this->loaded[$this->router->getContext()->getParameter('_locale')])) {
            $this->loadMappings();
            $this->loaded[$this->router->getContext()->getParameter('_locale')] = true;
        }

        return parent::supports($name);
    }
273435
public function attribute($name)
    {
        if (isset($this->properties[$name])) {
            return $this->object->$name;
        }

        $getterName = 'get' . ucfirst($name);
        if (isset($this->getters[$getterName])) {
            return $this->object->$getterName();
        }

        throw new \InvalidArgumentException("Unsupported attribute '$name' for " . \get_class($this->object));
    }
1102051
public function hasTag(string $name): bool
    {
        /** @var Tag $tag */
        foreach ($this->getTags() as $tag) {
            if ($tag->getName() === $name) {
                return true;
            }
        }

        return false;
    }
1268818
public function hasProperty(string $name): bool
    {
        if ($this->properties->containValue($this->environment, $name)) {
            return true;
        }

        return $this->properties->containValue('config', $name);
    }
721335
public static function has(string $name)
    {
        $names = Imi::parseDotRule($name);
        if (isset($names[0]))
        {
            $first = array_shift($names);
            if(isset(static::$configs[$first]))
            {
                return null !== static::$configs[$first]->get($names, null);
            }
            else
            {
                return false;
            }
        }
        else
        {
            return false;
        }
    }
827014
public function has($name) {
        $field = Condition::safeField($name);

        return isset ($this->names [ $field ]);
    }
1274146
public function supports($name)
    {
        $template = $this->nameParser->parse($name);

        return $this->getName() === $template->get('engine');
    }
244291
public function has(string $name): bool
    {
        return isset($this->stack[$this->normalizeName($name)]);
    }
1009242
public function hasArgument(string $name): bool
    {
        $this->parsePathArguments();
        return isset($this->arguments[$name]);
    }
1100024
public static function capable($name)
    {
        return isset(self::$adapters[$name])
            && (!isset(self::$adapters[$name]['client'])
            || (class_exists(self::$adapters[$name]['client'])
            || function_exists(self::$adapters[$name]['client'])
            || ini_get(self::$adapters[$name]['client'])));
    }
694286
public function __isset($name)
    {
        // If the key was loaded, return true
        if (array_key_exists($name, $this->attributes)) {
            return true;
        }

        // If it is a not loaded relation, return true
        if ($this->isRelation($name)) {
            return true;
        }

        // At least return true if this key can be lazy loaded
        return $this->isLazyLoadKey($name);
    }
1334589
public static function has($name)
    {
        return (self::find()->where([self::getNameAttribute() => $name])->one()) ? true : false;
    }
84012
public function __isset( string $name ) {
		return (bool) $this->$name ?? $this->_attributes[ $name ] ?? FALSE;
	}
22965
public function hasExtension($name)
    {
        return isset($this->extensions[$name]) || isset($this->extensionsByNs[$name]);
    }
825363
public function hasAttributeValue($name, $value = null)
    {
        if (!$this->hasAttribute($name)) {
            return false;
        }
        return (empty($value))? true : (array_search($value, $this->getArrayAttribute($name)) !== false);
    }
1162499
protected function supports($attribute, $subject)
    {
        if (!in_array($attribute, $this->getSupportedAttributes())) {
            return false;
        }

        return $this->supportSubject($subject);
    }