Handle when user gives empty or same ID in merge