def module_exists(self) -> bool:
        """
        :return:
            ``True`` if our module exists and is a valid git repository.
            See the :meth:`module` method.
        """
        try:
            self.module()
            return True
        except Exception:
            return False
        # END handle exception

        :return:
            ``True`` if our module exists and is a valid git repository.
            See the :meth:`module` method.
        
git/objects/submodule/base.py