if type(current) == list:
                # Validate this key works with a list.
                try:
                    key = int(key)
                except ValueError: