Can `.length == null`?  Also, `transform` already does equality checking to minimize GC churn, so I think its okay to just return a filtered version of the children.