[4.2] Update validateRequired To Validate An Empty Collection

Update validateRequired to validate empty Collection.
Please remove the trailing whitespace and squash to one commit.