this line makes no sense. i would even drop $isExisting and directly return the result of the session nodeExists call