I've used to.equal(true) to workaround the jshint complaint in cases like this.