Run cheaper check first, don't check the same condition twice.