RepositoryService: Check total-count for zero values using !isset insetad of empty