Add support for has_child filter

I didn't find a pratice way to test this.

Maybe someone can help. :)