I believe you can just combine these into one statement:
```
if (!instance._destroyed && instance._errorTimeout == null) {
...
}
```