Maybe you can use identical operator instead of unequal ?