Please note that this only works on PHP 5.5, please do this as we need to support PHP 5.4:

```php
$children = $current->getChildren();

if (empty($children)) {
    return false;
}
```