Might actually be better to test this as `if outputWriter != nil` instead - I think that more gets to the root of the issue. What do you think?