changed nodejs existence check