Explicitly check for NULL because C doesn't have fucking bool