Why write it like this?
```c++
if (!ctx) {
// ctx == null, throw something somewhere
} else if (ctx->err) {
// something still not good, throw some more stuff
}
// all is good here
```