As part of #20, could you break the conditional into three lines:

```js

if (!stream) {
  return -1;
}
```