Copy Task: How to fail on NO-SOURCE?

To answer my own question: you can use stopExecutionIfEmpty in onlyIf, as it is still called even if there are no sources available.

I wonder if there is a better way…