public function filter($item) { if ($this->counter > 0) { --$this->counter; return false; } return true; }