better handling of undefined posted vars