title: Checking if element is a 0 or any other value in Scala
body: <p>I have a box made up of a list of lists in Scala and I need to check if a particular cell contains an element that is not 0 or a 0 (given the row and column index to access that cell). If the element found is not a 0, an empty set should be returned else another value which I managed to code should be returned. How can I check if a particular cell contains 0 or not?
  Code so far:</p>
  
  <pre><code> if(//cell does not contain 0) 
     Set()
   else
   {
     //this part of code is ready
   }
  </code></pre>