src/Viserio/Component/Translation/Extractor/AbstractFileExtractor.php
protected function isFile(string $file): bool
    {
        if (! \is_file($file)) {
            throw new InvalidArgumentException(\sprintf('The [%s] file does not exist.', $file));
        }

        return true;
    }
protected function isFile(string $file): bool
    {
        if (! \is_file($file)) {
            throw new InvalidArgumentException(\sprintf('The [%s] file does not exist.', $file));
        }

        return true;
    }
Check if is file.

@param string $file

@throws \Viserio\Component\Contract\Translation\Exception\InvalidArgumentException

@return bool