updated localStorageAccess functions with hasWebStorage parameter