title: Why am I getting the error "not all code paths return a value" for this bool method
body: <p>I am trying to create a class method that checks a list named 'IngredientList' to see if it contains citrus items. I think it has to do with the else statement 'return false'. This is a portion of my code.</p>
  <pre><code>         public bool CheckIfCitrus()
          {
              foreach (string ing in IngredientList)
              {
                  if ((ing.ToLower() == &quot;lime peel&quot;) | (ing.ToLower() == &quot;orange peel&quot;))
                  {
                      return true;
                  }
                  else
                  {
                      return false;
                  }
              }
          }
  </code></pre>