Doesn't cfg.getParameter<bool> take a second parameter for the default value?