Removed early bail for empty arrays

It seems to me, that with this segment I've removed, it is not possible to clear a collection if the passed $data is an empty array.

If I am wrong, then what is the correct way to empty a collection? I've had this issue for a long time and this actually fixed it for me. At least when using in conjunction with Doctrine 2 entities.

Haven't tested it!