in reply to Shorten function conditions

Perhaps Params::Validate could be of use?