I would assume that you want the property (in your case has_notification) on the respective element to be true per default. In this case, you set it true when creating the element, the checkbox will then show as checked.
Alternatively you could just change the logic in the get function (see code snippet above), however note that even though you might then show the checkbox as checked, the actual data value true might not be persisted.