--no-create-empty-layers

Added in version 3.13.

Avoid creating layers to which no features will be written.