input: Write a function to convert a list of lists into a dictionary where the first element of each list is the key and the rest of the elements are the values. If a list is empty or does not have enough elements to form a key-value pair, it should be ignored. The function should return the constructed dictionary.
  assert convert_to_dict([["apple", "red", "green"], ["banana", "yellow", "green"]])=={'apple': ['red', 'green'], 'banana': ['yellow', 'green']}
  assert convert_to_dict([[], ["banana", "yellow", "green"]])=={'banana': ['yellow', 'green']}
  assert convert_to_dict([["apple", "red"], ["banana", "yellow"]])=={'apple': ['red'], 'banana': ['yellow']}
  assert convert_to_dict([["apple"], ["banana", "yellow", "green"]])=={'banana': ['yellow', 'green']}
  assert convert_to_dict([])=={}
  assert convert_to_dict([[], []])=={}
output: def convert_to_dict(lst):
      result = {}
      for sublist in lst:
          if len(sublist) > 1:
              result[sublist[0]] = sublist[1:]
      return result