avoid page error where setting not set for page

test whether var is set first before proceeding with inputting page meta