Refactor IS NOT VALUED to not use NOT().