Check if group exists

How can I check if a group exists with a group id?

local Game = game
local GroupService = Game:GetService("GroupService")

local function GetGroupInfo(GroupId)
	local Success, Result = pcall(function() return GroupService:GetGroupInfoAsync(GroupId) end)
	return Success
end

print(GetGroupInfo(1)) --true
print(GetGroupInfo(-1)) --false
2 Likes