def fill_list_var(to_check, length=0, var=1):
    """Return a list filled with the specified variable and the desired length."""
    difference = length - len(to_check)
    if difference > 0:
        if isinstance(to_check, list):
            to_check.extend([var] * difference)
    return to_check
