from pathlib import Path


def existing_git_submodule(path: Path) -> bool:
    """Check if a git submodule exists

    :param Path path: Submodule path
    :return: True, if .git file exists inside path
    """

    return Path(path / '.git').is_file()