using `BootCommon.location_changed = location.any?(...)` would be better here (Rubyfication), but as it was in the original code, it's a minor issue...