public function getSelectedItem() { if (($index = $this->getSelectedIndex()) >= 0) { return $this->_items->itemAt($index); } else { return null; } }