Unable to find multiplayer session in C++

So I’ve come up with a patch, by searching for the session in blueprints and passing the results back to C++. but just looking at it makes me sad so some input would be really appreciated