Removed redundant nullcheck.