How to check if used paginate in laravel
<p>I have a custom view and in some functions, I used <code>paginate</code> and other functions I don't use <code>paginate</code>. now how can I check if I used <code>paginate</code> or not ?</p>

<pre><code>@if($products-&gt;links())

   {{$products-&gt;links()}}

@endif // not work 
</code></pre>

<p>of course that I know I can use a variable as true false to will check it, But is there any native function to check it ?</p>