Move this check out of the `onsuccess` callback because in case of API not available, you should hide UI toggle immediately and skip the settings value looking-up.