Adds variable to tell if page has children

getSubpages is written with a small p in the PagesModel