public function revokeRole($role)
    {
        if ($this->hasRole($role)) {
            unset($this->roles[$role]);
            return true;
        } else {
            return false;
        }
    }