any() and all() can take list as condition