public function isExpired()
    {
        $date = $this->getValidUntil();

        if ($date instanceof \MUtil_Date) {
            return $date->isEarlierOrEqual(time());
        }

        return false;
    }
public function isExpired()
    {
        $date = $this->getValidUntil();

        if ($date instanceof \MUtil_Date) {
            return $date->isEarlierOrEqual(time());
        }

        return false;
    }
public function isExpired ( ) { $ date = $ this -> getValidUntil ( ) ; if ( $ date instanceof \ MUtil_Date ) { return $ date -> isEarlierOrEqual ( time ( ) ) ; } return false ; }
True when the valid until is set and is in the past
@return boolean
True when the valid until is set and is in the past