Validate collection before returning iterator