Sorry, but now that you made that change, I can see that you don't need query var, and this can simply be:

```
        return this._getQuery() !== null; 
```