Use Array.isArray() to check debug param