Optimized "if" function

Don't accept the reverts; that happened accidentally.