Use a local variable for can_have_children in case it is a property.