That is nicer! I will add that, but maybe we can change the condition to

    if(doi && !item.DOI ) {
i.e. the url contains just a doi and we don't yet have a doi. Okay?

Or would this even make sense in the BibTeX import translator?