Add: function to check if data exists