Knowing if it's the currently last process instance

Question about External Task Client Spring Boot Starter:
Can an ExportHandler know if it is working on the current last process instance? Or can you have a method next to execute that is called when there are currently no more process instances available for the topic?