title: beginner xcode swift sprite kit - remove sprite by name crash
body: <p>I'm trying to remove some sprites when they hit the bottom. It works if I don't check the name but it removes my background too. When I try to add the name to the <code>if</code> it crashes.</p>
  
  <pre><code>func checkifbotsreachbottom() {
      for child in self.children {
  
          if (child.position.y == 0 &amp;&amp; child.name == "botone") {
  
              self.removeChildrenInArray([child])
  
          }
      }
  }
  </code></pre>
  
  <p>This crashes, but if I remove the <code>child.name</code> part it doesn't.</p>