[OWNED] How to check [OWNED]

Hello, how to check whether the product was previously purchased. [OWNED]

Create a save to the cloud at first run. When game start, load this save. If save exists, game was owned previously.