const isFirst = parent.index + 1 < filteredTree.length && filteredTree[parent.index + 1].id === node.id;