Added separate cases for not equal to true and false