Use `unless` instead of `if not` as it is more idiomatic Ruby.