Modified setCommonParams to avoid a boolean $value of false causing
undesired behaviour.