Cleaner way to check for empty repo path