add a method to check the existence of the data