I will use `document.getElementById('nfc-settings').hidden = !!getNfc()` to write less code. (you don't have to update the checkbox since the whole item is invisible.)  in this case, the function `updateNfcSettingUI()` contains only one line, and it doesn't been called somewhere else, so I won't define it as a function.