Code: Select all
var test1 = pages.isEnabled('a-good-and-enabled-page')
console.log('Result1', test1) // true, as it should be.
var test2 = pages.isEnabled('a-non-existent-page')
console.log('Result2', test2) // incorrectly true. Could this be undefined to signal missing page?
This would be helpful in auto-generating page id arrays.