$roles->last() Returns the last element kirby/src/Toolkit/Collection.php#L667 $roles->last(): mixed Return type mixed Parent class Kirby\Cms\Roles inherited from Kirby\Toolkit\Collection