toggleClass: add class only if doesn't exist

Adding another ternary seems way more readable:

```js
state = typeof stateVal === 'boolean' ? stateVal ? 1 : -1 : 0,
```