Remove function calls from for loop test part