public static function pageMatchesCriteria($criteria, $matchOnEmpty = false, array $params, array $containerData)
$params is just extra data that may be useful to the matching process, and $containerData is data used in the template rendering process. You can set the extraData bit during template_post_render.