def make_list_fill_var(to_check, length=0, var=None):
    """Returns a list with the objects or a list filled with var."""
    if not isinstance(to_check, list):
        to_check = [to_check]
    difference = length - len(to_check)
    if difference > 0:
        to_check += [var] * difference
    return to_check
