Add a function to check if root.