scales.utils.collection
IF hasChildren then isStart indicates that this particular occurence is the start of the element or the end
IF hasChildren then isStart indicates that this particular occurence is the start of the element or the end