protected function _checkedOptions($value, $selected, array $attrs)
    {
        $attrs['checked'] = false;
        if (is_array($selected)) {
            foreach ($selected as $val) {
                if ($value == $val) {
                    $attrs['checked'] = 'checked';
                    break;
                }
            }
        } else {
            if ($value == $selected) {
                $attrs['checked'] = 'checked';
            }
        }

        return $attrs;
    }