Removed redundant IF statement