As a pure stylistic opinion, code like this can be made cleaner by skipping the `== true` entirely: i.e. just `if (isGui) { ... }` has the same effect!