How to add a new CSS class to a Link Badge if the value is 0?
Thanks to @Ramis Wachtler at Stack Overflow, I got the following JQuery code:

if($(".link-badge").text() == "0"){
    $(".link-badge").addClass("link-badge-zero");
}


Possible easier solutions are always welcome.