Removed unnecessary null-check.