Have you checked what happens when a user has no purchases? I suspect this will return an error because `'gamesPurchased' + id` wouldn't exist. So make sure you handle that case.