BTW: The code above is not quite correct, because count($languages) will not work as expected, because $languages is an object, not an array, so the correct way to count the number of languages would be
$languages->count();
If you really wanted to this via php, you could do this:
That’s weird, I just tested this on my Kirby install and it appears correctly. You can try changing != to ==. But I would suggest you follow @lukasbestle way of doing it, it’s better than doing it PHP.
Oh, I wasn’t aware of that! Thanks @texnixe! Learning something new everyday