Fix logic error

$(...) will always be true, as its collection. But it can have 0 elements.