Note that the property you are referencing is RootItemCount. That mean that, in that tree, how many root items are there? If you only have a single root item in your tree, then your code is working correctly.
Automated Testing Evangelists
Definition expert - noun - Unknown drip under pressure