code: public function each(Closure $fn)
      {
          foreach ($this->elements as $key => $element) {
              if ($fn($element, $key) === false) {
                  return false;
              }
          }
  
          return true;
      }
docs: CAll function on each element of collection
  
  @param Closure $fn
  @return bool