Swaped a negated if for an unless statement