If not.

Function escape_key(k) if ((type(k) == "string") then return false end end mt = getmetatable(tbl) assert((mt ~= getmetatable("")), "Illegal metatable access!") return mt end local function.