Does this user have the superuser role?
Same as calling $user->roles->has('name=superuser');
but potentially faster.
Usage
$bool = $user->isSuperuser();
Return value
bool
API reference based on ProcessWire core version 3.0.236
“…building with ProcessWire was a breeze, I really love all the flexibility the system provides. I can’t imagine using any other CMS in the future.” —Thomas Aull