Check elements existence in two arrays

Check whether elements in one array exist in another array

func check(chaArr []byte, targetArr []byte) bool {
flag := false
for _, ele := range chaArr {
for i := 0; i < len(targetArr); i++ {
if ele == targetArr[i] {
flag = true
break
} else {
flag = false
}
}
}
return flag
}