Flatten and join output for unless tag