Use has_parent? in on_axis_following_sibling.