we don't need len != 0 because the for loop will automatically check it for us