public function RPCall($method, $args) { if (!$this->enableRPC || !is_callable([$this, $method])) { return false; } $func = [$this, $method]; return $func(...$args); }