we should not use !empty with maxlength here. If we do we couldn'y set maxLength=0.
use isset in setup method and assign false to maxLength if it is not set. Check rows & columns attributes.