Shouldn't it be the other way around: not add the entry if existing `d:file` are already present ? The idea is to make sure we do not lose any extra metadata info that could be present on existing elements. WDYT ?