Please verify that $router_item['page_arguments'][2] is a node in this elseif