def check_integer(val, name):
    """
    This function checks that the supplied values are integers greater than 1

    A integer value that is non-negative is required for the summing function.
    Please check your input value.
    """
    if type(val) != list and type(val) != tuple:
        val = [val]
    for num in val:
        if type(num) != int:
            raise ValueError(f'The {name} value ({num}) is not an integer.')
        if num < 1:
            raise ValueError(f'The {name} value ({num}) is less than 1.')
    return val
