Returns true if the attribute is defined.
string The attribute name:
Boolean true if the attribute is defined, false otherwise
public function hasAttribute($name) { return array_key_exists($name, $this->attributes); }