check for undefined resultsPath