Check if email is already linked to an account

Hello,

I am currently working on a script for my store, which checks if a input from the user (email address) is already linked to an user account on my website.

I searched in the internet, but could not find the right solution and also the shopify support could not really help me with that.

I would like to not use an API or something like that, as I don’t know anything about it sadly.

Best would be, if there is a simple solution, that reads the email addresses from all user accounts and checks, if the input email is one of them or something similar.

I hope someone can help me with this issue.

Best regards