code: public function canRead($pFilename)
      {
          // Check if file exists
          try {
              $this->openFile($pFilename);
          } catch (Exception $e) {
              return false;
          }
  
          fclose($this->fileHandle);
  
          $type = mime_content_type($pFilename);
          $supportedTypes = [
              'text/csv',
              'text/plain',
              'inode/x-empty',
          ];
  
          return in_array($type, $supportedTypes, true);
      }
docs: Can the current IReader read the file?
  
  @param string $pFilename
  
  @return bool