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))