@for (container of nestedContainers(); track $index) {
  1. @if (container.children.length > 0) { }
}