Why not simply `hideProjectView()`, which ends-up being a no-op when the command is not applicable (because the project view is already hidden).