Tidied while loop with empty curly brackets