The ifs do something else, they continue the loop they are in, i.e. they advance the loop and make it execute the loop body from the beginning again. Basically skipping the current loop iteration.
If you take them out then the control flow will reach statements after those ifs, in your case most likely code that adds data to the list view.
Cheers,
_
Bookmarks