Show delete field only if there is a file

Just add some conditions to VichFileType to show delete field only if there is a file.