If the array is empty then handle that.