Remove the filter criteria and see if it runs. If it does then the problem is the filter
Put back the filter but before you loop through the collection, check the number of items in the collection. there should be a Count or Length property that you can check