Indeed you can simply say "If the optional parameter +capitalize+ is true".