Check that the parameter exists before trying to get it.