Do not rely on Array.isArray or Array#indexOf