replace check for emptyness of ParamSets with isEmpty