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