`hasOption` is confusingly named, it actually checks that the option has been created, not if the user has passed the option. So in this case its always true.
Also changed a weird usage of `in_array`.
api:doc:dump --format=html always disables the Sandbox since the check in
DumpCommand seems to be wrong. Fixed that as well as introduce a dummy
Request Object as the layout.html.twig expects an app.request object.