Remove duplicate check in Transform.notEquals()

`!(a && b)` was being evaluated twice.