fix isFound() logic