check if array is not empty