- adding check for null repoModel