tree:

isAsyncMutableTree(obj)

Returns true if the indicated object supports the AsyncTree interface and has a set(key, value) method.