Catch sample point element with error instead of panic. Expose
PrefixTree.HasElement.