check if xml exists (simplexml_load_file)
<p>I'm reading an XML file for a number. It then uses that number for a URL parameter which can be used as an XML as well. There are a few cases where the XML doesn't exist. When that happens I would like for the page to report that there are no stats for that game.</p>

<p>TL;DR: If the XML doesn't exist, how can I get it to simply echo "No Stats."</p>

<pre><code>$gamepage = simplexml_load_file('' . rawurlencode($gamelink) . '?xml=1');
</code></pre>
