Refactor of isExternalStorageMounted.