"cz init" cannot set pre-commit hook correctly
### Description

After running `cz init` and choosing to use a pre-commit hook, we'll encounter the following error.

```
Failed to install pre-commit hook.
pre-commit is not installed in current environment.
```

### Steps to reproduce

1 Run ` cz init`
2. Choose to use pre-commit

### Current behavior

Failed to setup pre-commit hook


### Desired behavior

Setup pre-commit hook successfully

### Screenshots

<img width="1709" alt="圖片" src="https://github.com/commitizen-tools/commitizen/assets/5144808/a8b31d5d-1b96-4f35-8731-f423d3375941">


### Environment

Commitizen Version: 3.2.1
Python Version: 3.10.6 (main, Sep 14 2022, 23:12:02) [Clang 14.0.0 (clang-1400.0.29.102)]
Operating System: Darwin
diff --git a/commitizen/commands/init.py b/commitizen/commands/init.py
index 08fdadef..351b9100 100644
--- a/commitizen/commands/init.py
+++ b/commitizen/commands/init.py
@@ -4,8 +4,6 @@ from typing import Any, Dict, List, Optional
 
 import questionary
 import yaml
-from packaging.version import Version
-
 from commitizen import cmd, factory, out
 from commitizen.__version__ import __version__
 from commitizen.config import BaseConfig, JsonConfig, TomlConfig, YAMLConfig
@@ -14,6 +12,7 @@ from commitizen.defaults import config_files
 from commitizen.exceptions import InitFailedError, NoAnswersError
 from commitizen.git import get_latest_tag_name, get_tag_names, smart_open
 from commitizen.version_types import VERSION_TYPES
+from packaging.version import Version
 
 
 class ProjectInfo:
@@ -66,7 +65,7 @@ class ProjectInfo:
 
     @property
     def is_pre_commit_installed(self) -> bool:
-        return not shutil.which("pre-commit")
+        return bool(shutil.which("pre-commit"))
 
 
 class Init:
['commitizen/commands/init.py']