public static function applyFilter($pageList, $filterFunction = null)
    {
        if (isset($filterFunction)) {
            $pageList = array_filter($pageList, $filterFunction);
        }

        return $pageList;
    }