guard parentNode being null