nit: maybe it's enough to do:
`this.headerText.dataset.isContact = !!details.isContact;`