CFY-1761 remove debug logs and use -z to do boolean string comparison