Cleanup: Change if to unless when looking for an error

As per the coding standards requested by @enyo