I see no use case that would make sense for the current implementation as well as @Danizord.
btw.: Shouldn't the parameter be called $children?