Added if brackets to constructor in parameters. This fixes the error when Updating the param value