Changes if-not to unless to be more rubyesque