I have an hash

```
{:result=>
  {:"1"=>
    [{:"1"=>1,
      :"2"=>"4698192612070913717",
      :"5"=>
      {:"1"=>{:"1"=>"1.0.0"},
        :"2"=>
        {:"1"=>1,
          :"2"=>"1525341956127",
          :"3"=>1000000000,
          :"4"=>0,
          :"5"=>{:"1"=>1000000000}},
        :"3"=>["17"],
        :"6"=>"4704522736971289334",
        :"8"=>["4618851880555471022"],
        :"9"=>[1]},
      :"6"=>{:"3"=>{:"2"=>false}, :"4"=>{:"1"=>false}},
      :"7"=>{:"1"=>1},
      :"8"=>"production"},
    {:"1"=>4,
      :"2"=>"4700283765268993541",
      :"6"=>{:"2"=>{:"1"=>200}, :"3"=>{:"2"=>false}, :"4"=>{:"1"=>false}},
      :"8"=>"beta"},
    {:"1"=>5,
      :"2"=>"4699074054925986704",
      :"6"=>{:"2"=>{:"1"=>100}, :"3"=>{:"2"=>false}, :"4"=>{:"1"=>false}},
      :"8"=>"alpha"},
    {:"1"=>10,
      :"2"=>"4697702456121346981",
      :"6"=>{:"2"=>{:"1"=>50}, :"3"=>{:"2"=>false}, :"4"=>{:"1"=>false}},
      :"8"=>"internal"}],
  :"3"=>{:"1"=>true, :"2"=>{:"1"=>{:"1"=>false}, :"2"=>{:"1"=>false}}},
  :"4"=>false},
:xsrf=>"AMtNNDFJl06mR54j2zxFjYIYfGQR22sUKA:1528830206790"}

```

I am looking for simple way to return a value or nil

I have tried this

```
result[:'result'][:'1'][1].dig(:'5').dig(:'1').dig(:'1')

```

but it's not working

What can I do to avoid this

```
if result[:'result'][:'1'][1].dig(:'5')
puts result[:'result'][:'1'][1][:'5'][:'1'][:'1']
end

```