I think we can add `return nil` or something like that here : https://github.com/wowdev/noggit3/blob/74309b7cd33e19ae2b9e69160612d98eae3b8dcc/src/noggit/scripting/script_filesystem.cpp#L35 And in script we can now use read_file like that : ```lua local myFile = read_file(path) if ( myFile ) then ... end ```