one nifty argument validation function