docs: def match_arr_lengths(l):
      """
      Check that all the array lengths match so that a DataFrame can be created successfully.
  
      :param list l: Nested arrays
      :return bool: Valid or invalid
      """
      try:
          # length of first list. use as basis to check other list lengths against.
          inner_len = len(l[0])
          # check each nested list
          for i in l:
              # if the length doesn't match the first list, then don't proceed.
              if len(i) != inner_len:
                  return False
      except IndexError:
          # couldn't get index 0. Wrong data type given or not nested lists
          print("Error: Array data is not formatted correctly.")
          return False
      except TypeError:
          # Non-iterable data type given.
          print("Error: Array data missing")
          return False
      # all array lengths are equal. made it through the whole list successfully
      return True