title: Warning: count(): Parameter must be an array or an object that implements.... in content_builder.php line 164
body: <pre><code>Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\cat-cafe\wp-content\themes\grandrestaurant\modules\content_builder.php on line 164
  </code></pre>
  
  <p>I was creating a page by using default content builder in wordpress and I encountered the above error &amp; also content is not even getting save while updating.</p>
  
  <p>The code content_builder.php is(line in which error is occuring):</p>
  
  <pre><code>if(!empty($ppb_form_data_order[0]))
      {
          $count_ppb = count($ppb_form_data_order[0]);
      }
  </code></pre>
  
  <p>Is there any solution through which I can tackle this problem..!?</p>
  
  <p>Wordpress version : 4.9.8
  PHP version : 7.2.7</p>