def db_model_exists(conn, experiment, fold):
    """
    Check if model already exists in database.

    Args:
        conn: Sqlite3 connection object.
        experiment: Experiment name.
        fold: Fold number.

    Returns:
        True if model exists, False otherwise.
    """
    cur = conn.cursor()

    for _ in cur.execute("SELECT * FROM experiments WHERE experiment=? and fold=?", (experiment, fold)):
        return True

    return False