Removed redundant if check.