What is going on here? Maybe abstract to another function. i.e.
```JavaScript
if(hasChildren(this.DOM.container)) {
```