Is there any reason you can't inline these?

```
if (!window.flags.ecs && box.pending) {
```

Not saying that it's necessary--it just looks a bit cleaner to me and I wonder what I might be missing.