Replace return type of GEOObjects::exists() with iterator.

In the caller functions only this iterator is used. This saves one more dereferencing.