How to check if PlayerId exists in CloudSave?

Hi team,

When a user first logs in Anonymously to Unity Authentication, their PlayerId is set up in CloudSave where we can attach PlayerData via key and value. I am familiar with the fact that we can check the keys for this ID etc.

But I also want to keep my database clean and hope to add a system that deletes inactive users. That creates a scenario where an ID can be deleted from CloudSave but the SessionToken still exists on the client.

The user opens the app and the Authentication still works, but unlike the first time, their ID isn’t added to CloudSave.

How can I check if a playerId is in CloudSave player data or not? Keys = 0 is not a good enough check because when valid users with an ID that exists in CloudSave first log in, they also have Keys = 0.

Is there an error or exception that I can hook into that I am not aware of (or not remembering?)

Thanks.