Update validateRequired to validate empty Collection

Update validateRequired to validate empty Collection.
Update validateRequired To Validate An Empty Collection

Check if it implements countable
Delete whitespace

Delete whitespace
Update validateRequired To Validate An Empty Collection
Merge branch 'patch-2' of https://github.com/pilot911/framework into patch-2
Merge pull request #6467 from pilot911/patch-2

[4.2] Update validateRequired To Validate An Empty Collection
Merge branch '4.2'