I don't have much context here but there is PQgetisnull. Keep that in mind if it is relevant.