Added a check to see if the original data was empty (user does not exist in the local storage).