Check existing element within query before inserting into database

Hi Teodor,

Under the validation I have an insert action. So if it exists the insert action will stop.
I following this Check if a Database Record Already Exists Before Inserting a New Entry and the only difference is the validation is going to be checked within a query.

Thank you!