Please help a noob

Options
Hey guys! Right now I'm trying to make a multiplayer game with photon (I'm using Unity btw)! And right now I have it set up so that you can join and create rooms like this:

public void CreateGame()
{
PhotonNetwork.CreateRoom(CreateGameInput.text, new RoomOptions() {maxPlayers = 2}, null);
}

public void JoinGame()
{
PhotonNetwork.JoinRoom(JoinGameInput.text);
}

How can I make it so that if you try and join a room that doesn't exist it instantiates a game object?

Comments