I spent a while on that particular page, is why I referenced it
The $.getSetIniDBNumber() you are calling retrieves a value or sets it if it doesn’t exist. That would probably do what you want, but if you want to check to see if it was set prior (for displaying in chat I suppose) you would use:
boolean $.inidb.exists(String table_name, String key)
Returns true is the key exists in table_name.
You do need an additional parameter though for:
int $.getSetIniDbNumber(String table_name, String key, int defaultValue)
The above is what we use in many instances when setting initial values in the database in modules.