There is already int "isError(RootObject *o)", and that would be too similar. Maybe it is possible to merge these two, though, but I'm not sure about the side-effects.