def check_index_in_list(name_list, index):
    """
    Returns whether or not given index exists in a list of names
    For example:
        name_list: ['a', 'b']
         0 exists, 'a', so we return True
         1 exists, 'b', so we return True
        -1 exists, 'b', so we return True
         2 does not exists, we return False
    :param name_list: list(str), name split in components
    :param index: int, positive or negative index number
    :return: bool, Whether given index exists or not in names list
    """

    list_length = len(name_list)
    if index < 0:
        check_length = abs(index)
    else:
        check_length = index + 1
    if check_length > list_length:
        return False

    return True