Added IsEmpty API to registrationtree