This doesn't work if `pred` returns `nil` as a falsey value. If you used `(complement boolean)` instead of `false?`, it would work.