Add a function to check whether the repository is existing. Close #59