move `return true` in for loop