Use correct type for 'found' to avoid bad comparisons