Simplify code with filter_var()
deprecate call.