`unless @api_key.empty`? or maybe reverse the logic to "C-ish assert" (check for errors first) as in

```
raise ArgumentError, "Missing an API key" if @api_key.empty?

env = basic_auth env
@app.call(env)
```