Wouldn't it be better to add this to the `if`?

```js
if (this[0] && selector) …
```