I don't understand this. What is comments.data[i]?

Also why not put this directly in if (...)?