public function hasAttribute($name) { return $this->_attributes ? $this->_attributes->contains($name) : false; }