Little Fix: Z Output check

Weird case when there are no nodes.