also, invert the if-block: do the positive assertion first