If you are only thinking about casting the variable to boolean here, do `isHidden = !!isHidden;`