Aravind | Resolving the promise immediately if there are no elements to be upserted