utils.add will only add attribute if value is defined