Parameter page=0 gives problem in rules I have a rule which is activated with the following url

redirect/startcoursewithpage?course=502&amp;page=1&amp;module=471

The condition of the rule is:
- Check if URL argument exist for course
- Check if URL argument exist for page
- Check if URL argument exist for module.

The parameter values of course and module will never be 0. The page can be of a value of zero.

If the parameter page=0 is given in the url the condition is not true and the redirect is not done. If I remove the condition Check if URL argument exist for page it is working. 

The value zero is directly from the database from another view. I think I should uuencode this zero value but I do’n know how. Other suggestions?
Having a look through the code of the module, the function that checks if the url parameter exists is this:

/**
 * Rules condition callback.
 *
 * Checks if the specified URL argument is set.
 */
function rules_url_argument_argument_exists($argument) {
  return !empty($_GET[$argument]);
}


This will return false if the argument is 0.  

I think it should really be this:  

/**
 * Rules condition callback.
 *
 * Checks if the specified URL argument is set.
 */
function rules_url_argument_argument_exists($argument) {
  return isset($_GET[$argument]);
}


Might be a good idea to submit an issue (and maybe a patch) in the modules issue queue.
I'm not exactly sure why the function gets the argument argument and doesn't use it
I have never used this module BTW.

EDIT:
There is also if (!empty($_GET[$argument_name])) { on line 71 of the module file that might need changing to isset.