public function rewind() { if (trim($this->bitset, "") !== '') { $this->ordinal = -1; $this->next(); } else { $this->ordinal = 0; } }