check_param function

Check if the parameter is a valid parameter