checking of existing data in local storage