if you call the export function with a startleaf and that startleaf has no children it returns an empty array. if that startleaf has at least one child it returns both the startleaf and the children. is this expected behaviour? marko