Kind of like this?

```js
  log = log || function noop() {}
  custom_handler = custom_handler || function noop() {}
```

and then later..

```js
if(!stream && custom_handler(req, resp)) return
```