Checks if the given parameter is null or has a size less than the given size, and if so,
throws an IllegalArgumentException with an appropriate message.
Checks if the given parameter is null or has a size less than the given size, and if so,
throws an IllegalArgumentException with an appropriate message.