Oh sorry, for some reason I thought this was checking for the valid case. You're right.