Fix a bug in inSight

This change fixes a bug where an empty collection was always returned
if the fisrt element was out of sight. Now the loop will return early
only when at least one visible item is found.