tree:

has(tree, key)

Returns true if the tree has a value for the given key.