This could be simplified to `value ? getDefaultPref(key)`, couldn't it?