As the UpdatePlayerStatistic request causes "Statistics not currently defined [to] be added", I need to be able to ensure the given StatisticName corresponds to an existing Leaderboard. The server.GetLeaderboard request returns without issue even if there is no existing Leaderboard with the given StatisticName. To be clear, the result the request returns is:
{"Leaderboard":[],"Version":0}
Is there a way for me to differentiate from this result that the Leaderboard *doesn't* exist and not that it does exist and is either empty, or recently versioned?
Or is there a different request that I can call? As far as I'm aware, I can't and shouldn't be calling admin api requests from CloudScript, otherwise admin.GetPlayerStatisticDefinitions would be an option?