Fixing the boolean check logic