actually it should just be `!data`

what is `*error != NULL` supposed to check here?