removing bad array check