title: Wordpress: Check if there are previous posts before displaying link
body: <p>I'm using the following code to display a 'previous posts' link on my Wordpress blog. </p>
  
  <pre><code>     &lt;nav&gt;
              &lt;ul&gt;
                  &lt;li&gt;&lt;?php previous_posts_link('Newer Entries &amp;raquo;') ?&gt;&lt;/li&gt;
  &lt;/ul
  &lt;/nav&gt;
  </code></pre>
  
  <p>Problem is, when there ARN'T any previous posts, while the link doesn't display, I still get </p>
  
  <pre><code>&lt;nav&gt;
              &lt;ul&gt;
                  &lt;li&gt;&lt;&lt;/li&gt;
  &lt;/ul
  &lt;/nav&gt;
  </code></pre>
  
  <p>Printed out. Is there an if() statement I could wrap around it all so it checks if there are any previous posts, and only prints it out if there are?</p>