Params::Util provides a basic set of functions that makes checking parameters easier.