Throws an error if it's not an array of x,y objects. Only checks the first element.
Optional
List of points.
Additional checks.
Throws an error if it's not an array of x,y objects. Only checks the first element.