title: How to check if the variable of XPath is empty?
body: <p>In some cases the below XPath does not have any value.</p>
  
  <pre><code>$place = extractNodeValue('div[contains(@class, "fn")]/a', $xPath);
  </code></pre>
  
  <p>I tried to find if it does not contain with the <code>empty</code> function and <code>$place=''</code> without luck.</p>
  
  <p>Is there any way to make this possible?</p>
  
  <p>Using <code>var_dump</code> I get <code>NULL</code>.</p>