bot-detector
bot-detector copied to clipboard
Fix for when prediction breakdown does not contain main label
If the API returns a breakdown with at least one element and that breakdown does not contain the primary label, it is added before being sent over to the plugin. Ideally this should not happen, this is more of a fallback measure.
Also some random changes to using isEmpty()
in there, I'm not sure why I didn't use those before.