This method checks if the node has attributes
public function hasAttributes(): bool;
The tested node have to be an XML_ELEMENT_NODE.
bool