changed is_root() to am_root() to prevent clash with variable names.