Tests if an attribute exists.
public function hasAttribute(string $name) : bool { return isset($this->attributes[$name]); }