Handling the case of empty repositories

#1