title: PHP IS_DIR Condition Not Working In Loop With Continue
body: <p>I know this is a dummy question.<br>
  But I have banging my head more than an hour to make it works.</p>
  
  <pre><code>$path = '/dir/path';
  $files = scandir($path);
  foreach ($files as $file) {
      if (($file === '.' || $file === '..') || (is_dir($file))) continue;
      if (empty($file)) {
          echo $file.'&lt;br&gt;';
      }
  }
  </code></pre>
  
  <p>Suppose I just want to show empty files within a directory than also content subdirectories.</p>
  
  <p>How to make the <code>is_dir</code> condition works with <code>continue</code> statement?</p>
  
  <p>Thanks in advance.</p>