title: Attribute null values
body: <p>I am trying to simply find out if an attribute has a value and this code no longer seems to work.  I'm using magento 2.10 </p>
  
  <pre><code>$attribute = $_product-&gt;getResource()-&gt;getAttribute('bullet_3'); 
  if ($attribute) 
  { 
      $attr_value = $attribute -&gt;getFrontend()-&gt;getValue($_product);
      if ($attr_value===NULL) {  }
      else {
      echo "&lt;li&gt;" . $attr_value . "&lt;/li&gt;"; 
  }
  </code></pre>