if has node ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By trafel
:warning: Old Version Published before Godot 3 was released.

Is there a method to check if a parent contains a certain node ? My method seems to continously output errors wich saturate the memory.

if parent.get_node("child"):
  #do stuff
:bust_in_silhouette: Reply From: vnen
if parent.has_node("child"):
    #do stuff