Improved param filtering with PHP filter_id function