The \doiffile macros recognize the existence of a file but, unless I am mistaken, not the existence of a directory. 
Is there another macro, whose existence I have nof found yet, that offers this capability?
Or should this be a slight encouragement to expand the implementation in that direction?

dr. Hans van der Meer