If you create the Excel sheet yourself would it not be wise to do a retrieve first of the objects you are putting in the Excel template and if no records can be found skip the creation part?
Otherwise create a Java action that checks the metadata of the Excel.
Regards,
Ronald
Not really sure what’s going on internally, but technically you can create an import template using the “excel importer” module from the marketplace, and check if this contains objects?