if not arg.skip_non_existing and not deletes:

--skip-non-existing is meant to make the operation idempotent without raised errors.