Demo howto validate input params w/o using if()