Remove a redundant null check.