Added methods is.bare and is.empty

* is.bare: Check if a repository is bare

* is.empty: Check if a repository is empty