Most efficient way to check if a section has any active entries Just wondering what the most efficient way to check whether a section has any entries or not. Based on this, I'm showing some content. The content doesn't take any information from the entries in the section, so it'll be a superfluous query no matter what.

For context, this is basically what it'll look like:

{% if craft.entries.section('whatever') | length &gt; 0 %}
    &lt;a href="www.com"&gt;Go here&lt;/a&gt;
{% endif %}
You can use {{ craft.entries.section('whatever').total() }} for that.