Ability to detect empty repositories (throws NullPointer...)