refactoring: getFirstCacheFromResult() can return null