How to get the DOI status of publication

Describe the issue or problem
We have a large set of publications that we do not want to acquire DOIs and that can be achieved just not activating the DOIs in Crossref plugin.

I would like to hide DOI details on the article page on those articles that do not have an active DOI. Is there a way to access DOI status information outside of Crossref plugin (PHP code / tcl)?

Any pointers appreciated!

What application are you using?
OJS 3.3.0.17