Minor style issue: use `== NULL` check rather than type-punning it to bool.