make toogleClass second argument less verbose

If second argument must evaluate to boolean, it can be done less verbose.