`i` should be tight to its usage, so it is easier to see that you need it only if name doesn't exist.