public function hasRole($expectedRole, $providedRoles = null) {
		if ($providedRoles !== null) {
			$roles = (array)$providedRoles;
		} else {
			$roles = $this->roles();
		}

		if (!$roles) {
			return false;
		}

		if (array_key_exists($expectedRole, $roles) || in_array($expectedRole, $roles)) {
			return true;
		}
		return false;
	}