title: if has div exists do this else do that with jquery not working
body: <p>I have a jquery if else statement, however my if statements works, but my else statement does not.</p>
  
  <p>I converted this original code:</p>
  
  <pre><code>$('.pt-trigger').click(function() {
          $pageTrigger = $(this);
          Animate($pageTrigger);
      });
  </code></pre>
  
  <p>Into this(which is where the else statement does not work)</p>
  
  <pre><code>$('.pt-trigger').click(function() {
              if ( $(".pt-trigger").has(".tick") ) { 
                  $(this).find('.tick').fadeIn(500, function() {
                      setTimeout(function() { 
                          $pageTrigger = $('.pt-trigger');
                          Animate($pageTrigger);
                      },400);
                  });
              } 
              else {
                  $pageTrigger = $(this);
                  Animate($pageTrigger);
              }
      });
  </code></pre>
  
  <p>Here is some of my HTML, one showing with a tick and one without:</p>
  
  <pre><code>&lt;div class="pt-trigger-container"&gt;
              &lt;button class="pt-trigger" data-animation="1" data-goto="-1"&gt;
                  Get started
              &lt;/button&gt;
          &lt;/div&gt;
  
  &lt;div class="pt-trigger-container clearfix"&gt;
                  &lt;button class="pt-trigger push" data-animation="1" data-goto="-1"&gt;
                      Constantly active
                      &lt;div class="tick"&gt;
                          &lt;i class="icon-ok-circled2"&gt;&lt;/i&gt;
                      &lt;/div&gt;
                  &lt;/button&gt;
  &lt;/div&gt;
  </code></pre>