public function get($attribute) { if ($this->has($attribute)) { return $this->attributes->{$attribute}; } return null; }