code: private function exists($offset = null)
      {
          return isset($this->container[$offset !== null ? $offset : $this->position]);
      }
docs: Check if element exists. Uses current position if no offset provided
  
  @param int $offset
  @return bool