Modified setting way of boolean attributes

Detail:
- Before : setAttributes(["attr" => null])
- After  : setAttributes(["attr"])
Polished comments