Check if a model has a attribute with key $name.

@param string $name

@return bool
498027
protected function hasModelValue($name)
    {
        if (!isset($this->model)) {
            return false;
        }

        return isset($this->model->{$name});
    }
367436
public function __isset($name)
    {
        try {
            return \property_exists($this, $this->getRichFieldName($name));
        } catch (RichModelFieldException $e) {
            return false;
        }
    }
863339
public function has($name):bool
    {
        return ((isset($this->session[$name]) && null != $this->session[$name])? true : false);
    }
1076959
public function has(string $name): bool
    {
        $name = $this->getDefinitiveName($name);

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

        return false;
    }
1108422
public function hasChanged($name)
    {
        if ($this->hasOldAttribute($name) && $this->hasNewAttribute($name)) {
            return $this->getOldAttribute($name) != $this->getNewAttribute($name);
        } else {
            // Unknown attribute
        }
    }
382347
public function hasClass($name)
    {
        foreach ($this as $node) {
            if ($node instanceof \DOMElement && $class = $node->getAttribute('class')) {
                $classes = preg_split('/\s+/s', $class);
                if (in_array($name, $classes)) {
                    return true;
                }
            }
        }
        return false;
    }
293882
public function has(string $name): bool
    {
        try {
            $this->dotGet($name);
        } catch (DotNotFoundException $e) {
            return false;
        }

        return true;
    }
695155
public function HasParam ($name = '') {
		if ($this->params === NULL) $this->initParams();
		return isset($this->params[$name]);
	}
822949
protected function isValidAttribute($name)
    {
        $pattern = '~^' . self::ATTRIBUTE_REGEX . '$~i';
        $result = @preg_match($pattern, $name);
        return (bool)$result;
    }
111828
public function hasField( $name )
	{
		$name	= strtolower( $name );
		if( isset( $this->fields[$name] ) )
			return (bool) count( $this->fields[$name] );
	}
354479
private function hasProperty(string $name): bool
    {
        if (!isset($this->index[PropertyBinding::TYPE])) {
            return false;
        }

        return $this->index[PropertyBinding::TYPE]->hasProperty($name);
    }
827014
public function has($name) {
        $field = Condition::safeField($name);

        return isset ($this->names [ $field ]);
    }
224092
public function hasAttribute($name)
    {
        if ($name === 'id') {
            return empty($this->storage[ 'id' ]) ? false : true;
        } elseif ($name === 'class') {
            return empty($this->storage[ 'class' ]) ? false : true;
        } else {
            return isset($this->storage[ $name ]);
        }
    }
771690
public function hasRole($name)
    {
        if (!$this->relationLoaded('role')) {
            $this->load('role');
        }

        return in_array($this->role->name, (is_array($name) ? $name : [$name]));
    }
1079982
public function hasField($name)
    {
        $name = $this->convertToPrimaryKeyName($name);

        return self::getMeta()->hasField($name);
    }
568854
public function hasMethod($name)
    {
        $methods = $this->getMethods();
        foreach ($methods as $method) {
            if ($method->getName() == $name) {
                return true;
            }
        }

        return false;
    }