I would give here `file_exists()` before starting the parser.