title: How to hide certain id/class in html if variable of an array is empty
body: <p>Im new to php.</p>
  
  <p>Hide tab If that array varible is empty.</p>
  
  <pre><code>&lt;ul id="myTab" class="nav nav-tabs nav-justified"&gt;
                  &lt;li class="active"&gt;&lt;a href="#eng" data-toggle="tab"&gt;&lt;i class="fa fa-tree"&gt;&lt;/i&gt; English&lt;/a&gt;
                  &lt;/li&gt;
  
                  &lt;/li&gt;
                  &lt;li class=""&gt;&lt;a href="#cho" data-toggle="tab"&gt;&lt;i class="fa fa-car"&gt;&lt;/i&gt; Chords&lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
  
              &lt;div id="myTabContent" class="tab-content"&gt;
                  &lt;div class="tab-pane fade active in" id="eng"&gt;
                      &lt;div class="lyrics-body-txt"&gt;
                      &lt;div class="english"&gt; `&lt;?php echo $song["eng"]; ?&gt;`
  
                      &lt;/div&gt;&lt;/div&gt;
                  &lt;/div&gt;
                   &lt;div class="tab-pane fade" id="cho"&gt;
                      &lt;div class="lyrics-body-txt"&gt;
                      &lt;div class="chords"&gt; `&lt;?php echo $song["chords"]; ?&gt;`
  
                      &lt;/div&gt;&lt;/div&gt;
                  &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;'
  </code></pre>
  
  <p>"english"   => "bla bla bla bla bla",</p>
  
  <p>"chords"    => "",      ---- This is empty</p>
  
  <p>So i want to hide that chords tab when ever the chords variable is empty</p>