Port Configure::check() for users not yet using CakePHP 2.3.