The has() method checks if the element has an attribute with the specified name.
Description
public Attributes::has(string $name): bool
Parameters
name
The name of the attribute to check for.
Return Value
Returns true if the attribute exists, otherwise false.
Exceptions
None