--[[
	Disconnects existing connections
]]

local function disconnectOldConnections()
	for _, connection in ipairs(connections) do
		if connection then
			connection:Disconnect()
		end
	end

	connections = {}
end
