avoid duplicate cacti_tree resources
implement tree_exists as much possible