src/Krucas/Counter/Counter.php
public function has($key, \DatePeriod $period = null)
    {
        if (is_null($period)) {
            return new Exists($this->repository->has($key));
        }

        return $this->hasForPeriod($key, $period);
    }
public function has($key, \DatePeriod $period = null)
    {
        if (is_null($period)) {
            return new Exists($this->repository->has($key));
        }

        return $this->hasForPeriod($key, $period);
    }
public function has ( $ key , \ DatePeriod $ period = null ) { if ( is_null ( $ period ) ) { return new Exists ( $ this -> repository -> has ( $ key ) ) ; } return $ this -> hasForPeriod ( $ key , $ period ) ; }
Determine if value exists.

@param string $key Counter key.
@param \DatePeriod $period Date period.
@return \Krucas\Counter\Contracts\Exists|array
Determine if value exists .