This statement is repeated below, just move the test inside the `try` block (you can even use a ternary expression here to assign `this._graph`)