Generalizing the Poincaré–Miranda theorem: the avoiding cones condition