Return to lobby if preferences unavailable

What the title says!
Excuse me? you have 3 loops of the same type over the same var. Really, tell me why it's not possible to condense them into one loop.