replace RESUtils.pageType === 'x' with RESUtils.isPageType('x')