correction string.isArray don't exist -> Object.isArray(string)