Only loop through array indices