Small fix: typeof(value) === "object"