public function removeAttribute($name) { if ($attributes = $this->getViewState('Attributes', null)) { return $attributes->remove($name); } else { return null; } }