consider using `unless` instead of `if not`