Please follow the standard:
```
   return !stream.fail()
```
27.5.5.4