convenience method added to check whether the dept is a root