private function isSkippedExisting(File $file): bool {
        if (!in_array($this->skipMode, [self::SKIP_EXIST, self::SKIP_BINARY_EXIST])) {
            return false;
        }
        try {
            $res = $file->getResource(false, false);
            return $res->isBinary() || $this->skipMode === self::SKIP_EXIST;
        } catch (MetaLookupException $e) {
            if ($this->metaLookupRequire) {
                return true;
            } else {
                throw $e;
            }
        } catch (NotFound $e) {
            return false;
        }
    }