If an array is empty, it looks like you can\'t check it\'s length using \".length\". What\'s the best way to check if an array is empty?
check if the array is null first so you would avoid a null pointer exception
logic in any language: if array is null or is empty :do ....