why this code run if? android
<p>When tempPackageName_pInfo = "aaaa.asaddsdaa" 
"aaaa.asaddsdaa" is package name that non exist on android market.
why code is run in "if". It should be run "else"</p>

<pre><code>for (PackageInfo pInfo : appinstalled) {
        String tempPackageName_pInfo = pInfo.packageName.toString();
        appinstalledTest = pm
                .getInstalledApplications(PackageManager.GET_PERMISSIONS);
        Intent intent = new Intent();
        intent.setAction(Intent.ACTION_VIEW);
        intent.setData(Uri.parse("market://details?id="
                + tempPackageName_pInfo));
        List&lt;ResolveInfo&gt; list = pm.queryIntentActivities(intent,
                PackageManager.MATCH_DEFAULT_ONLY);// 0
    if (list.size() &gt; 0) { runIf(); } else { runElse(); }
</code></pre>

<p>Sorry for my bad English.</p>
