title: Trying to fix the typical found nil while unwrapping error
body: <p>Currently I have a button in my cell thats being used as an image, why a button and not an image, it seems that using a button keeps the image sharper, but that's neither here nor there. </p>
  
  <pre><code>if realDistance &gt; 8000
  {
      self.tourist.text = "Tourist"
  
      //crashing line
      self.touristBackground.imageView?.image = UIImage(named: "tours-1")
  
  }
  </code></pre>
  
  <p>This is my current code and the commented line is the one that is crashing. I'm not sure why that's crashing but not the line above. </p>
  
  <p>The exact error is fatal error: </p>
  
  <blockquote>
    <p>unexpectedly found nil while unwrapping an Optional value</p>
  </blockquote>
  
  <p>I suppose that I could try an if let but that seems to not work. I could be doing it wrong however. </p>
  
  <p>EDIT. It happens here as well</p>
  
  <pre><code>if lbuttonHidden == true
  {
      self.lls.text = String(self.lls.text!.toInt()! - 1)
  
      //crashing line
      if  self.lls.text ==  "\(0)"
      {
          self.trophy.image = UIImage(named: "STAR2")
      }
  }
  </code></pre>