sounds good, i'd love to merge this but could you first wrap filter_var in quotes? even if it works as is, that param should be wrapped in single quotes 
http://us1.php.net/function_exists