I don't think that it is a big problem here, since only a recursive method call is make. But would $child be better for you?