From the core commands in the help file...
ARRAY COUNT
This command will return the number of items in the array. This is usually the value used to create the
array when the DIM command was used, however by modifying the dynamic array this value can change
throughout the execution of the program. When an array is completely empty, it will return a count of -1.
The count refers to the number of available indexes, and so will return a count of zero when the command
DIM arr(0) is used, representing the fact a single subscript is available at index zero.
Syntax
Return Integer=ARRAY COUNT(Array Name(0))
ARRAY INDEX VALID
This command will return a value of one if the array index specified is a valid item within the array.
Specifying a value greater or equal to the size of the array would therefore return a zero.
Syntax
Return Integer=ARRAY INDEX VALID(Array Name(0))
I hope this helps.
As a side note, Your camera snippet in the Code Base helped me out a lot.