code: public function supports($filename)
      {
          try {
              $result = @\exif_imagetype($filename);
          } catch (\Exception $e) {
              return false;
          }
  
          return $result !== false;
      }
docs: {@inheritdoc}