Could we just check if the body doesn't has the `has-appshell-menu` class here? It would be less to modify for later updates.