added IsIdRoot helper