title: Invalid argument supplied for foreach() .. Wordpress
body: <p>Suddenly starting getting this error for the following code: </p>
  
  <pre><code>&lt;?php foreach (get_the_terms(get_the_ID(), 'loan-club') as $cat) : ?&gt;
  &lt;img src="&lt;?php echo z_taxonomy_image_url($cat-&gt;term_id); ?&gt;" title="ON LOAN AT: &lt;?php echo $cat-&gt;name; ?&gt;" /&gt;
  &lt;?php endforeach; ?&gt; 
  </code></pre>
  
  <p>Sometimes the taxonomy 'loan-club' is empty. Could that be the problem? If so, could someone point me towards the correct code?</p>