Added the exists method inside the HashMapRepository interface