# {{#has}} helper not working for {{pagination}}

**URL:** <https://forum.ghost.org/t/has-helper-not-working-for-pagination/35336>\
**Category:** Developer help\
**Created:** [January 7, 2023, 1:24am UTC](https://forum.ghost.org/t/has-helper-not-working-for-pagination/35336 "2023-01-07T01:24:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![securibee](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/securibee/32/21057_2.png) [@securibee](https://forum.ghost.org/u/securibee)\
**Post date:** [January 7, 2023, 1:24am UTC](https://forum.ghost.org/t/has-helper-not-working-for-pagination/35336/1 "2023-01-07T01:24:32Z")

</div>

I want to use `{{#has any="prev, next"}}` to prevent the {{pagination}} from rendering when there is no prev or next, e.g., a single page, but it never renders when using `has`.

When I use `{{ log prev }}` and `{{ log next }},` they return `1` and `null`, as expected if you’re on the first page and there’s more.

According to the docs, the `any` comparison will return true if **any** one of the properties is set in the current context, with support for paths and globals.

Am I missing something?

**pagination.hbs** :

 ![carbon (1)](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/9/5/95cd102d809876ee09376c5e70a44ef13e0f68bb.png)

---

<div class="post-metadata">

**Author:** ![markstos](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/markstos/32/18182_2.png) [@markstos](https://forum.ghost.org/u/markstos)\
**Post date:** [January 8, 2023, 2:28pm UTC](https://forum.ghost.org/t/has-helper-not-working-for-pagination/35336/2 "2023-01-08T14:28:11Z")

</div>

I’ve reviewed all the relaterd docs, linked below. It doesn’t appear you are missing anything. This.

Your logging confirms that these two values are available at the top level of the “context”, and the pagination docs say the same.

The docs for `#has` describe it working exactly like you’ve used it.

Either there’s a bug, or we are both missing something!

## References

- [pagination helper docs](https://ghost.org/docs/themes/helpers/pagination/)
- [“#has” helper docs](https://ghost.org/docs/themes/helpers/has/)
- [“#if” helper docs](https://ghost.org/docs/themes/helpers/if/)j

---

<div class="post-metadata">

**Author:** ![securibee](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/securibee/32/21057_2.png) [@securibee](https://forum.ghost.org/u/securibee)\
**Post date:** [January 8, 2023, 3:13pm UTC](https://forum.ghost.org/t/has-helper-not-working-for-pagination/35336/3 "2023-01-08T15:13:27Z")

</div>

Thanks for the reply and for confirming that I’m not missing anything! I’ll go ahead and file a bug report.
