What are variables? In simple terms, variables are names which hold values. These values are stored in the database and are used in templates to evaluate and present the content and data. Using variables in templates opens up a lot of...
All you have to do is check the current structure of XF / Member Stats.
Like as,
PHP:
class YourClass
{
public static function isVisible(\XF\Entity\MemberStat $memberStat): bool
{
return boolval(\XF::db()->fetchOne("
SELECT user_id
FROM xf_user
WHERE vote_score > 0
LIMIT 1
"));
}
}