added isActive root detection
Merge pull request #10 from PlenipotentSS/master

added isActive root detection