I read that the objectexists is deprecated and to use treenode.rank instead.
How do I have to do it correctly? I'm not sure I'm doing it in the correct way.
If I do like this I get an exception when object does not exist:
Object box = item.first; if (box.rank) box.color = Color(1,0,0);