But it has the same bug, if the array has zero length but a non-null ptr the test will be true, even though one might __not__ access the array (it's empty).