code: def __append_list(append_to, value):
      
      if value is not None:
          if isinstance(value, list):
              append_to.extend(value)
          else:
              append_to.append(value)
docs: Appends the value to the list.