public function __get(string $name) { // An empty attribute is always null return isset($this->attributes[$name]) ? $this->attributes[$name] : null; }