protected function isExpired(array $item, $expiration = null)
    {
        $expiration = $expiration ?: Carbon::now();

        return isset($item[$this->expirationAttribute]) &&
               $expiration->getTimestamp() >= $item[$this->expirationAttribute]['N'];
    }
protected function isExpired(array $item, $expiration = null)
    {
        $expiration = $expiration ?: Carbon::now();

        return isset($item[$this->expirationAttribute]) &&
               $expiration->getTimestamp() >= $item[$this->expirationAttribute]['N'];
    }
protected function isExpired ( array $ item , $ expiration = null ) { $ expiration = $ expiration ? : Carbon :: now ( ) ; return isset ( $ item [ $ this -> expirationAttribute ] ) && $ expiration -> getTimestamp ( ) >= $ item [ $ this -> expirationAttribute ] [ 'N' ] ; }
Determine if the given item is expired.

@param  array  $item
@param  \DateTimeInterface|null  $expiration
@return bool
Determine if the given item is expired .