As cool as this oneliner is, I find it a little bit hard to read. Even more now that we've added the condition inside the declarations part. How would you feel about extracting the declarations and using a while loop instead?