Rule of the thumb: do not rely on JavaScript’s implicit type conversions.
The culprit in your specific case is blank values, neither true nor false, you can see them as more pale checkboxes:
Rule of the thumb: do not rely on JavaScript’s implicit type conversions.
The culprit in your specific case is blank values, neither true nor false, you can see them as more pale checkboxes: