Correctly checking if filteredCount > 1 before logging warning.