title: Shell Script "|| { }" Readable Alternative
body: <p>I was looking for a way to check if a program is installed using Shell Script when I came across <a href="https://stackoverflow.com/a/677212/126353">this answer</a> which contained this code:</p>
  
  <pre><code>hash foo 2&gt;&amp;- || { echo &gt;&amp;2 "I require foo but it's not installed.  Aborting."; exit 1; }
  </code></pre>
  
  <p>But that code isn't very (human) readable, what is the alternative for that syntax?</p>