Fix undefined offset if there are no variable prices

If there are no variable prices for an item the array is empty which results in a undefined offset