Perhaps `attrs.uncheckable !== undefined || !element.hasClass(buttonsCtrl.activeClass)` should work to shorten this further.