Code cleanings & minor features

$terms->count() returns an integer.
Any integer except 0 is equal to boolean true, meaning the condition matches.