fixed bug where if node array does not exist, it through error.