Slim Application Error

The application could not run because of the following error:

Details

Type: ErrorException
Code: 2
Message: array_key_exists() expects parameter 2 to be array, null given
File: /home/nature02/public_html/controllers/GeneralActionController.php
Line: 68

Trace

#0 [internal function]: Slim\Slim::handleErrors(2, 'array_key_exist...', '/home/nature02/...', 68, Array)
#1 /home/nature02/public_html/controllers/GeneralActionController.php(68): array_key_exists('main_page', NULL)
#2 [internal function]: Keskeny\Controller\GeneralActions->home('id=')
#3 /home/nature02/public_html/vendor/slim/slim/Slim/Route.php(462): call_user_func_array(Array, Array)
#4 /home/nature02/public_html/vendor/slim/slim/Slim/Slim.php(1326): Slim\Route->dispatch()
#5 /home/nature02/public_html/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#6 /home/nature02/public_html/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#7 /home/nature02/public_html/middlewares/AuthMiddleware.php(45): Slim\Middleware\MethodOverride->call()
#8 /home/nature02/public_html/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): AuthMiddleware->call()
#9 /home/nature02/public_html/vendor/slim/slim/Slim/Slim.php(1271): Slim\Middleware\PrettyExceptions->call()
#10 /home/nature02/public_html/index.php(172): Slim\Slim->run()
#11 {main}