change if ! to unless
change if ! to unless