prevent strings being mistaken as arrays

testing for `join` rather than `slice` will prevent strings being mistaken as arrays.