public function removeAttribute($attribute) { if (array_key_exists($attribute, $this->attributes)) { unset($this->attributes[$attribute]); } return $this; }