def _is_lt_position(first: tuple, second: tuple, position):
    """Compare the tuple at given position."""
    if len(first) > position and first[position] is not None:
        if len(second) > position and second[position] is not None:
            return first[position] < second[position]
        return False  # cannot be smaller if other position does not exist.
    # If not defined, always smaller if other is not None
    return len(second) > position and second[position] is not None