original_string: 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));
      }
code: 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));
      }
code_tokens: 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 ) ) ; }
docstring: Disabled attribute detection.
  
  @param array $radio Radio info.
  @param array|null|true $disabled The disabled values.
  @return bool
docstring_tokens: Disabled attribute detection .