Removed redundant if.