Improve indent method loop condition