Removed unnecessary if statement.