Check if array is empty?

 

I need to be able to check if an array is set, or if it is empty. Doesn't really matter if it returns a boolean or errorcode or whatever.

Anyone who knows a command to do this? Or have another solution to go around this problem?

All answers are apprecicated.

Best Regards,

Johan

 
Define "empty"