Added check to see if prices list has any value before adding a new price to it