/**
  * @todo this will incorrectly evaluate isSelected() as true if the model object is null 
  * and the choice render returns a 0
  * @param type $choice
  * @param type $index
  * @return type 
  */
 public function isSelected($choice, $index)
 {
     if ($this->isEmptyInput()) {
         return false;
     } else {
         $raw = $this->getRawInput();
         if (!empty($raw)) {
             return $this->getRawInput() == $this->getChoiceRenderer()->getValue($choice, $index);
         } else {
             return Objects::equals($this->getModelObject(), $choice);
         }
     }
 }