def METHOD_NAME(domain):
    if isinstance(domain, Domain):
        domain = domain.name  # double check just in case
    row = Domain.get_db().view('domain/deleted_domains', key=domain, reduce=True).one()
    return bool(row)