Removed dead code

If $entity is instance of Collection, it also is instance of Traversable.