Adding existence checks for z and gocode