title: PHP if statement issue when checking for variable value
body: <p>I'm trying to just write a simple PHP if statement that checks if a custom field has anything entered into or if it has been left blank.</p>
  
  <p>when it is blank it is meant to not print anything to the page,
  if something is set in the custom field then it should create a li element with an a tag inside of it.</p>
  
  <p>here is my code so far:</p>
  
  <pre><code>&lt;ul class="externalLinks"&gt;
  &lt;? $emptycheck = get('linkname',2,1,0);
  
  if (isset($emptycheck)){ ?&gt;
     &lt;li&gt;&lt;a href="&lt;? echo get('targethref',2,1,0); ?&gt;"&gt;&lt;? echo get('linkname',2,1,0);?&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;? } else { '' } ?&gt;
  
  &lt;li&gt;&lt;a href="&lt;? echo get('PDFdownload'); ?&gt;"&gt;Download a PDF of this project&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>The custom fields in this case are set by the wordpress admin (through the flutter plugin).
  The issue I am having is simply that if the custom fields are left blank an empty </p>
  
  <pre><code>&lt;li&gt;&lt;a&gt;&lt;/a&gt;&lt;/li&gt; 
  </code></pre>
  
  <p>is created. </p>
  
  <p>get('linkname',2,1,0) returns the field content obviously (this part works).</p>
  
  <p>Any ideas would be much appreciated.</p>
  
  <p>Thanks,
  Jannis</p>