original_string: protected function isExpired(array $item, $expiration = null)
      {
          $expiration = $expiration ?: Carbon::now();
  
          return isset($item[$this->expirationAttribute]) &&
                 $expiration->getTimestamp() >= $item[$this->expirationAttribute]['N'];
      }
code: protected function isExpired(array $item, $expiration = null)
      {
          $expiration = $expiration ?: Carbon::now();
  
          return isset($item[$this->expirationAttribute]) &&
                 $expiration->getTimestamp() >= $item[$this->expirationAttribute]['N'];
      }
code_tokens: protected function isExpired ( array $ item , $ expiration = null ) { $ expiration = $ expiration ? : Carbon :: now ( ) ; return isset ( $ item [ $ this -> expirationAttribute ] ) && $ expiration -> getTimestamp ( ) >= $ item [ $ this -> expirationAttribute ] [ 'N' ] ; }
docstring: Determine if the given item is expired.
  
  @param  array  $item
  @param  \DateTimeInterface|null  $expiration
  @return bool
docstring_tokens: Determine if the given item is expired .