Can't use '-z' to check an entire array, changed to string.