You can pull this check and the `latitude` check outside the loop. If there is a rotation, check the rotated corner points and if they are out of range throw an exception. Also you should validate the extent. See `Extent.validate`.