Auth0 - Prevent account linking if account already exists

Hi, is there a way to prevent linking account if account already exists ? For example: I have two accounts one test1@gmail.com and another test2@gmail.com (both are google sign ins). Now if I want to link test2 with test1, I would like to throw an error saying that the account already exists. That’s the requirement of our application. test2@gmail.com can be a standalone email or a previously linked email. Is that possible ?

I am aware of this endpoint.

But this doesn’t return if test2@gmail.com exists as a linked email.

Thanks
Debabrata Pramanik