Simplify!
```js
if (!$this.closest('.icon').length || !$this.children().length) {
```