Nit: we should observe the Mozilla convention of always bracing controlled statements, even one-liners, and especially when they span multiple lines, as described in the [Coding Style Guide](https://developer.mozilla.org/en-US/docs/Developer_Guide/Coding_Style), which [says about control structures](https://developer.mozilla.org/en-US/docs/Developer_Guide/Coding_Style#Control_Structures):

> Always brace controlled statements, even a single-line consequent of an if else else. This is redundant typically, but it avoids dangling else bugs, so it's safer at scale than fine-tuning.