```php
} elseif (null === $subject->getId() || (($subject instanceof TaxonInterface || $subject instanceof TaxonomyInterface) && $subject->hasFile())) {
    $this->uploader->upload($subject); 
}