def _ifOnlyWalk(row):
    """Helper funtion to return True if row only contains Walk mode."""
    modes = set(row.split(","))
    walkExist = "Mode::Walk" in modes
    length = len(modes) == 1
    return walkExist & length