def _temp_trip_stack_has_tripleg(temp_trip_stack):
    """
    Check if a trip has at least 1 tripleg
    Parameters
    ----------
        temp_trip_stack : list
                    list of dictionary like elements (either pandas series or python dictionary). Contains all elements
                    that will be aggregated into a trip

    Returns
    -------
    Bool
    """

    has_tripleg = False
    for row in temp_trip_stack:
        if row['type'] == 'tripleg':
            has_tripleg = True
            break

    return has_tripleg