You don't need to explicitly check if something is true. You can change this to `if search_file_index[i]:`.