I think we can get rid of `hasAnchor` method because anybody can just use `getAnchor` directly. We don't have `hasPath` method, so I guess it's safe to remove.