PHP -check if a page is restricted to members
I'm using the members app (v1.6.1). On a particular master page, I'd like a way to check whether the page instance is restricted to members (with any tag), so as to select whether to include
perch_layout('global/social-share');. (The master page is otherwise identical for some pages outside of the members' area).
Is there a way I can write an
if statement with its condition being whether the "Restrict access to members with tags" field is empty? Or is there a better way?