Removed redundant nullcheck