Repeat until value not nil

The way you did it is unnecessary, but alright…