The if should be the other way around