One indication that a planet may exist near a distant star is that?

its gravity is strong enough to exert an effect on other objects in orbit.

A shadow appears between the star and the observer.