I mean don't duplicate the check `value === true/false`, there are already if/else branches handling those two cases.