is_reserved_node should be a function