Removed unnecessary if.