Added a utility function that will check against empty string vectors being
returned as StringArrays.  This replaces the manual check in various
functions.