check if source is not empty before deleting event after import