change condition to toggleClass

One more place to change.