Make use of while let.