I believe you can replace `children[1..-1]` with `children.drop(1)`.