def has_doi(obj, eng): if has_submission(obj, eng): d = Deposition(obj) return d.is_minted() return False