I'm getting started with Arcade and can't figure out how to do something that I expect is quite simple. I have a function that returns a Dictionary object. There is a special case that the caller has to process where the returned Dictionary is empty (ie. it has no keys). How do I write that in Arcade? I would think at least I could get an Array of keys then check the length, but I don't see how to do that either
var x = Dictionary ()
// My code here
if (??????(x)) {
// Dict is empty!
}
else
{
// Dict is not empty
}