check so page template isnt null