Make sure array is not empty