expanded any() to include deep iteration functionality