If is_valid is False, it won't evaluate the other part of the if, so no problem :)