Toad for oracle 12.9 automation designer

I want to schedule a task in automation designer utility exporting data set from query in excel sheet then send email
But I don't want the email to be sent if the query result is empty or no data retrieved
Can anyone help how to make this work flow with screenshots?