if we get here, res can no longer be empty right? (since we're checking for `missing`)