How do I simplify this?

https://preview.redd.it/xqjk2j8j4mid1.png?width=694&format=png&auto=webp&s=0da9cbc1a97fc714e536e431135cf5142844ee36

There has to be a way and I bet it's easy but I can't figure it out. I don't want to add another "or" every time I add a frog. Also for projectiles that I spawn during the game I can't use name because they all have different names. All of these share the same parent node but I can't figure out how to check parents name. I tried looking this up but I failed to find anything.