I can print a serial array but not use it in an IF statement