Fix undefined index if no purchases made