def ci_index(_list, _value):
    """Case-insensitively finds an item in a list"""
    if _value is not None:
        for index in range(len(_list)):
            if _list[index].lower() == _value.lower():
                return index

    return -1