#1 adding condition to check if the page schema exists