If there are no more elements, the built-in method will return NULL.
SQL>
SQL> declare
2 type month_va is varray(13) of VARCHAR2(20);
3 v_month_va month_va;
4 v_count_nr number;
5 begin
6 v_month_va:=month_va('A','B','C','D','E','F','G');
7 DBMS_OUTPUT.put_line('Length:'||v_month_va.count);
8
9 for i in v_month_va.first..v_month_va.last
10 loop
11 DBMS_OUTPUT.put_line('v_month_va(i): '||v_month_va(i));
12 end loop;
13 end;
14 /
Length:7
v_month_va(i): A
v_month_va(i): B
v_month_va(i): C
v_month_va(i): D
v_month_va(i): E
v_month_va(i): F
v_month_va(i): G
PL/SQL procedure successfully completed.