public function isTimedOut($key)
    {
        // if the item is available and has timed out, return TRUE
        if (array_key_exists($key, $this->lifetime) && $this->lifetime[$key] < time()) {
            return true;
        }
        // else return FALSE
        return false;
    }
public function isTimedOut($key)
    {
        // if the item is available and has timed out, return TRUE
        if (array_key_exists($key, $this->lifetime) && $this->lifetime[$key] < time()) {
            return true;
        }
        // else return FALSE
        return false;
    }
public function isTimedOut ( $ key ) { // if the item is available and has timed out, return TRUE if ( array_key_exists ( $ key , $ this -> lifetime ) && $ this -> lifetime [ $ key ] < time ( ) ) { return true ; } // else return FALSE return false ; }
Returns TRUE if an lifetime value for the passed key is available
and the item has timed out.

@param mixed $key The key of the item the lifetime check is requested

@return boolean TRUE if the item has timed out, else FALSE
Returns TRUE if an lifetime value for the passed key is available and the item has timed out .