Could you use `.get` instead of `.pop`? It doesn't make a real difference for this particular case, but mutating the arguments can get confusing later.