added additional array check in compiler pass