title: Why should we avoid using rescue in its modifier form?
body: <p>I will define value. But this value may be in value of key of hash. I will use <strong>rescue</strong> for define value is nil if this keys is not exist.
  for example</p>
  <p><code>foo = bar[:a][:b][:c] rescue nil</code></p>
  <p>But in practice tell me bad style because me using rescue in its modifier form. I will change logic to use check three condition.</p>
  <p><code>foo = bar[:a][:b][:c] if bar.key?(:a) &amp;&amp; bar[:a].key?(:b) &amp;&amp; bar[:a][:b].key?(:c)</code></p>
  <p>I really would like to know why should we avoid using rescue in its modifier form?</p>