public function isSelected($config, $checkType)
    {
        $selected = false;

        if (!is_object($config['objectValue'])) {
            $selected = (isset($config['inputs'][$config['name']])
                || isset($config['config']['selected'])
                || $config['objectValue'] === 'on'
                || ($config['objectValue'] == 1 && $checkType == 'checked')
                || is_array(json_decode($config['objectValue']))) ? $checkType : '';
        }

        return $selected;
    }