Execute query - throw exception

Hi I have an execute query of getting one row from DB which may exist or may not. And my next activity is checking if row is empty or not.but the exceute query throwing exception ’ there is no row at position 0’ if there is no row. But I want to continue on next check.
I don’t wanna enable continue on error or try catch as sometimes the query can be wrong. How to continue on next activity on such cases

Hi!

In Execute query right click on that activity you can see the surrounded with Try-Catch in the catch block use System.Exception And use Continue

Regards,
NaNi