def get_record_if_exists(dh_records, params):
    """Checks to see if record specified in config.json exists in current Dreamhost records."""
    for record in dh_records:
        if record["record"] == params["record"] and record["type"] == params["type"]:
            # Return Dreamhost record if record does currently exist.
            return record
    # Return empty dictionary if record does not currently exist on Dreamhost.
    return {}