check to see if navigation exists before outputting it