tex: add exists check.