Added checking if nodes are empty on pre chef call