Would it be better to resolve this using `$app['config']->get('app.debug')`?