filename_i[] is an array of file names that might match the description given to glob. what this piece is doing is simply picking the first element from that list. I have my doubts we will ever get multiple file name matchups but this is to prevent against that.