I have a `map<int, map<int, int>>`. 

The first key stands for node, the second key stands for an attribute, and the 'deepest' element represents a particular value.

I need to check that element, but doing the following unnecessary adds keys to my map:

```
map<int, map<int, int>> test;
if (test[4][3] > 5)
{
    //do something
}

```

The alternative as I think of it is 

```
map<int, map<int, int>> test;
if (test.find(4) != test.end())
{
    if (test[4].find(3) != test[4].end())
    {
        if (test[4][3] > 5)
        {
            //do something
        }
    }
}

```

Is there a better way to do this? I don't know if there exists the key `[4][3]` in the map, and I don't want to unnecessarily add it. Thanks!