Added validation for Collection arguments.