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

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

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

@param array $pagelist Pagelist array
@param $filterFunction Callback function

@return array $pagelist
Filter method .