move hasPageSkin test further up