How about, instead:

    if(modules['settingsNavigation'].options.advOptions.value) {
        RESAdvOptions.checked = true;
    }

    modules['settingsNavigation'].updateAdvOptionsState();