[RFR] Fix missing params check

Fix missing params check to avoid issue when the values are 0 or 1