Guard for nil data in flickr competitions and clean up iteration