change if ! to unless