use convenient method to check for empty project repo
Merge pull request #3407 from NARKOZ/patch-1

use convenient method to check for empty project repo