Regularized the API for all() and any()