update `is-null-or-empty` to use simplified invert