Let's do `if (output != null) { ... }` which catches both `undefined` and `null`.