Unnecessary loop check