Don't rely on variables, use $view->get( 'listCatPath', array() ) instead