public function isValid()
    {
        if (!filter_var($this->email, FILTER_VALIDATE_EMAIL)) {
            return false;
        }

        if (empty($this->userAgent)) {
            return false;
        }

        if (empty($this->series)) {
            return false;
        }

        if (empty($this->token)) {
            return false;
        }

        return true;
    }
public function isValid()
    {
        if (!filter_var($this->email, FILTER_VALIDATE_EMAIL)) {
            return false;
        }

        if (empty($this->userAgent)) {
            return false;
        }

        if (empty($this->series)) {
            return false;
        }

        if (empty($this->token)) {
            return false;
        }

        return true;
    }
public function isValid ( ) { if ( ! filter_var ( $ this -> email , FILTER_VALIDATE_EMAIL ) ) { return false ; } if ( empty ( $ this -> userAgent ) ) { return false ; } if ( empty ( $ this -> series ) ) { return false ; } if ( empty ( $ this -> token ) ) { return false ; } return true ; }
Checks if the cookie contains valid values.

@return bool
Checks if the cookie contains valid values .