php 5.1 does not have filter_var