Is checking !locfcinfo->isnull due to something new in v2,
or what is just a correction for a problem also in v1?
The “!locfcinfo->isnull” is to protect against segmentation faults. I found it was added to the original function which I adapted the “element” version from.