Fix bad array check.