Removed unnecessary if clause.