protected function _isDisabled($radio, $disabled)
    {
        if (!$disabled) {
            return false;
        }
        if ($disabled === true) {
            return true;
        }
        $isNumeric = is_numeric($radio['value']);

        return (!is_array($disabled) || in_array((string)$radio['value'], $disabled, !$isNumeric));
    }
protected function _isDisabled($radio, $disabled)
    {
        if (!$disabled) {
            return false;
        }
        if ($disabled === true) {
            return true;
        }
        $isNumeric = is_numeric($radio['value']);

        return (!is_array($disabled) || in_array((string)$radio['value'], $disabled, !$isNumeric));
    }
protected function _isDisabled ( $ radio , $ disabled ) { if ( ! $ disabled ) { return false ; } if ( $ disabled === true ) { return true ; } $ isNumeric = is_numeric ( $ radio [ 'value' ] ) ; return ( ! is_array ( $ disabled ) || in_array ( ( string ) $ radio [ 'value' ] , $ disabled , ! $ isNumeric ) ) ; }
Disabled attribute detection.

@param array $radio Radio info.
@param array|null|true $disabled The disabled values.
@return bool
Disabled attribute detection .