Fix broken children check

Previous expression always returned false (comparing array with 0) and broke any sitemap with a recursive link selector