Add isEmpty() method to repository