title: Parameter must be an array or an object that implements Countable HTML2PDF php
body: <p>I need to help how to fix this:  Parameter must be an array or an object that implements Countable on row 5. Could anybody help?   </p>
  
  <pre><code>self::$_list = array();
  $handle = fopen($file, 'r');
  while (!feof($handle)) {
      $line = fgetcsv($handle);
      if (count($line)!=2) continue;
      self::$_list[trim($line[0])] = trim($line[1]);
  }
  fclose($handle);
  </code></pre>