You don't need to compute hasHidden:
```
if (!this._items && $('.item', this._collection).some(function(item) { return $(item).css('display') === 'none'; }) { ...
```