[Declarative Pipeline] Is there a way to raise an error when using a non existing params.XYZ?


I encountered this issue on several occasions, leading to fake green builds.
In declarative pipeline, we access parameters using the params. object, as described here Pipeline Syntax
This give us the proper object type, so we like it.
Now, if a typo occurs in the jenkinsfile, and we are trying to use access params.XYZ, the execution doesn’t complain, and we get a ‘class org.codehaus.groovy.runtime.NullObject’

Is there a way to make the script execution halt, like when referencing a XYZ variable directly ?