Removed redundant null check.