What the function does is to generate the content in advanced menu, if the device is configured with only one storage (ie. # of `navigator.getDeviceStorages` == 1, it's a persistent value), then we don't have to do the rest thing in this function. Please move the condition check and hide menu logic to upper level, say, the `init` function.