def binary_word_search(string, data):
    """A simple binary search algorithm to check if string exists in data."""
    string = str(string)
    if len(data) == 0:
        return False
    mid = len(data)//2
    if data[mid] == string:
        return True
    elif string < data[mid]:
        data = data[:mid]
    else:
        data = data[mid+1:]
    return binary_word_search(string, data)