title: How to use guard outside of function?
body: <p>Is it possible to use <code>guard</code> outside of a function?</p>
  
  <p>The following throws an error that return or break needs to be used but that isn't possible in this case.</p>
  
  <pre><code>var var1 = String?()
  guard let validVar = var1 else {
      print("not nil")
  }
  </code></pre>