I am confused about the attached image scenario… I need to disable staging logging for users that have a role of externalrole. So, i need to disable logging for 3 items in this case.

This means that i need to make 3 checks. I need help with check #1 and #2.
1: if the user is external user then do not log. I need help with checking for the second part, IsExternal = true here.
2: if the external user is added to the site, then do not log. What would be the check in this case?
3: if the role is external then do not log. This check is good.
Code snippet:
var obj = e.Settings.InfoObj;
if (
(obj.ObjectTye == PredefinedObjectType.USER && (Check IsExternal ??????)) ||
(check that external user did not get added to the website – how to make this check????) ||
(obj.ObjectType == PredefinedObjectType.ROLE && obj.ObjectCodeName.StartsWith("externalrole"))
)
{
e.Settings.LogStaging = false;
}