PBP doesn't check array limits. That is true for all variables types. So you can scan thru all pins of all ports with PORTA.0[i]...