you could do an else here instead, it will only get triggered if the loop gets to the end