Added local storage checker