Append to array, and check for empty globs