Inverted logic checking for error