def det_new_group(i, base=0):
    """Determine if new_group should be added to pipetting operation.

    Helper to determine if new_group should be added. Returns true when
    'i' matches the base, which defaults to 0.

    Parameters
    ----------
    i : int
        The iteration you are on.
    base : int, optional
        The value at which you want to trigger a new group. Default: 0.

    Returns
    -------
    bool
        True if iteration equals base case.

    Raises
    ------
    ValueError
        If i is not of type integer
    ValueError
        If base is not of type integer

    """
    assert isinstance(i, int), 'Needs an integer.'
    assert isinstance(base, int), 'Base has to be an integer'
    if i == base:
        new_group = True
    else:
        new_group = False
    return new_group
