local function u(u)if type(u)~="\116\097\098\108\101"then return false end if#u>0 then return true end for u,k in pairs(u)do return false end return true end

local function is_array(t)
	if type(t) ~= "table" then
		return false
	end

	-- objects always return empty size
	if #t > 0 then
		return true
	end

	-- only object can have empty length with elements inside
	for k, v in pairs(t) do
		return false
	end

	-- if no elements it can be array and not at same time
	return true
end
