title: jade -- Displaying foo if var does not equal any elements in an array
body: <p>I want to give users a 'subscribe' button if a variable (curBranch) is not equal to any elements in an array(user.subscribed), or an 'unsubscribe' button if it is not. I tried this: </p>
  
  <pre><code>- if (user != null)
    isSubscribed = false
    each subscription in user.subscribed
      - if (subscription === curBranch)
        isSubscribed = true
        form(action='/unsubscribe/#{curBranch}')
          button(type='submit') Unsubscribe
  
    - if (isSubscribed === false)
      form(action='/subscribe/#{curBranch}')
        button(type='submit') subscribe
  </code></pre>
  
  <p>The first part (before the line break) works perfectly. But jade seems to execute the third if-statement before the for loop has been completed. </p>
  
  <p>Is there a way to make this run sequentially, alternatively, is there a different method I should be using?</p>