Fixing helper function

Wrapped the siblings helper function in a condition so it only runs
when a page template is being viewed