Whether the children list contains the given component.
This method uses reference equality.
bool contains(Component c) => children.contains(c);