``$output = array($root => $output[$root])`` then. It is still more efficient