Java Jsoup button selection
<p>I just want to check whether given element exists or not, I have the following code:</p>

<pre><code>Document doc = Jsoup.connect("http://www.gsmarena.com/news.php3?iPage=2").get();
    Elements button = doc.select("a &gt; pages-next");
        if (!button.isEmpty()) {
            System.out.println("contains");
        } else {
              System.out.println("not contains");
        }
</code></pre>

<p>But it always returns false, here is also the element that I want to check:
<a href="https://i.stack.imgur.com/W4Jzq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W4Jzq.png" alt="enter image description here"></a></p>