Yes, OhLordy there is a way for this.
As you mentioned is_int and is_integer doesn't work on form vars. But PHP has developed is_numeric function for this kind of variables.
if(!is_numeric($a)) $a = 0;
This way you can identify any integer or Float variable comes from a form.
Hope this works.