$user->isLastAdmin() Checks if the user is the last one with the admin role kirby/src/Cms/User.php#L374 $user->isLastAdmin(): bool Return type bool Parent class Kirby\Cms\User