Removing this else also expects the `if(!isExampleFound)` is moved inside the previous condition after the for block