test for empty array