One more thing.

I didn't realize the second else statement was actually necessary so I added it back.