Shouldn't you use the `getBoolParam` and not just check for `1` on these?