500 - array_keys() expects parameter 1 to be array, boolean given @ /athletes/1945023 exception 'ErrorException' with message 'array_keys() expects parameter 1 to be array, boolean given' in /home/capstone/app/controllers/AthletesController.php:340 Stack trace: #0 [internal function]: Illuminate\Exception\Handler->handleError(2, 'array_keys() ex...', '/home/capstone/...', 340, Array) #1 /home/capstone/app/controllers/AthletesController.php(340): array_keys(false) #2 [internal function]: AthletesController->show('1945023') #3 /home/capstone/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(231): call_user_func_array(Array, Array) #4 /home/capstone/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(93): Illuminate\Routing\Controller->callAction('show', Array) #5 /home/capstone/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(62): Illuminate\Routing\ControllerDispatcher->call(Object(AthletesController), Object(Illuminate\Routing\Route), 'show') #6 /home/capstone/vendor/laravel/framework/src/Illuminate/Routing/Router.php(967): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'AthletesControl...', 'show') #7 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}('1945023') #8 /home/capstone/vendor/laravel/framework/src/Illuminate/Routing/Route.php(109): call_user_func_array(Object(Closure), Array) #9 /home/capstone/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1033): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request)) #10 /home/capstone/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1001): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request)) #11 /home/capstone/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(775): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request)) #12 /home/capstone/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(745): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request)) #13 /home/capstone/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(471): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true) #14 /home/capstone/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(428): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Illuminate\Http\Request), true) #15 /home/capstone/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(328): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(Object(Illuminate\Http\Request), true) #16 /home/capstone/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(192): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(Object(Illuminate\Http\Request), true) #17 /home/capstone/vendor/barryvdh/laravel-debugbar/src/Middleware/Stack.php(34): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(Object(Illuminate\Http\Request), 1, true) #18 /home/capstone/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(72): Barryvdh\Debugbar\Middleware\Stack->handle(Object(Illuminate\Http\Request), 1, true) #19 /home/capstone/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true) #20 /home/capstone/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true) #21 /home/capstone/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true) #22 /home/capstone/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(641): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request)) #23 /home/capstone/public_html/index.php(99): Illuminate\Foundation\Application->run() #24 {main}Error in exception handler.