You can check for the
.git
folder which almost always means parent folder
.git
folder which almost always means parent folder