protected static function processBooleanInputOptions($name, &$options) {
        if(isset($options['label'])) {
            $options['labelOptions'] = isset($options['labelOptions']) ? $options['labelOptions'] : [];
            Html::addCssClass($options['labelOptions'], ['widget' => 'form-check-label']);
        }
        Html::addCssClass($options, ['widget' => 'form-check-input']);
        if(!isset($options['id'])) {
            $idMain = strtolower(str_replace(['[]', '][', '[', ']', ' ', '.'], ['', '-', '-', '', '-', '-'], $name));
            $options['id'] = $idMain . '-opt-' . $options['value'];
        }
    }