fix comparision check typo; empty check on moduleParams