more checks regarding localStorage