The is_not_empty() method as more clearly alternative for !is_empty()

I'd toss my 2 cents in for an unless keyword that is equivalent to if not ().

unless v.emtpy() {
 // ...
 }

But generally I'm happy with !v.empty()

2 Likes