Updated boolean comparison