Based on this line, maybe `child` should be renamed to `children` so you can do `children.each do |child|`?