For Loop To Iterate Through Array Bash Script Check