Instead of adding boolean field, it would be better to pass array "$htmlOptions", which should be used to compose a HTML tag.
See "CHtml::tag()" for ispiration and possible solution.