handling the case when there are no ids in the where options in the find function of adapter