I think you don't need to compute length (it's quite slow on live list like children) but rather know if there is a firstElementchild. So `if (ThreadUI.view.firstElementChild)` would be enough and way faster here