pre-empt this with

```javascript
if (typeof self.zlib === "undefined") self.zlib = true
```
then use `if (self.zlib` instead of `if (zlib`