I'm confused the following throws an exception:
if (!filter_var(0, FILTER_VALIDATE_INT))
throw new Exception("Non numeric field passed " . $field . " when expecting a number: " . $variable . " passed instead");
anything positive works fine? I've tried intval(0) and still nothing. is zero not an integer?