Change integer depth parameter to boolean getChildren for getNodesForPath method