The feature depends on the key `identity.fxaccounts.ui.enabled`. I would suggest to check the settings value directly instead of checking the ui state.

```
Settings.getSettings(function(results) {
  var enabled = results[`identity.fxaccounts.ui.enabled`];
  if (!enabled) {
    return;
  }
  // add idle observer here
});
```