public function getAttribute($key) { if (!isset($this->attributes[$key])) { return false; } return $this->attributes[$key]; }