Error checking in stringArray filter to eliminate console errors