Since we're modifying things, I think that `cfg.toggleSwitch` here and in L252 should be replaced with `this._isSwitch`, as defined in L85, to have consistent usage across the whole file (`_isSwitch` is used 6 times in the file)