private function _hasAttribute($key) { return is_array($this->_attributes) && array_key_exists($key, $this->_attributes); }