Uses empty array when matches is void in SearchTree.search