added obj nil? check in nav helper