Removed unnecessary null check.