protected function getRadioCheckedState($name, $value, $checked) { if ($this->missingOldAndModel($name)) { return $checked; } return $this->getValueAttribute($name) == $value; }