added check for blank array
switched to exit 1