rules => [ FOO => sub{print "here!"} # make this rule dependant on whether FOO has a child-tag called BAR? ]