lines 745 through 751 can be replaced with
```python
return isgood is not None and isgood[0] == 1
```