Use Array.isArray() in one spot

instead of Object.toString()