This commit is contained in:
2024-04-26 15:39:13 +08:00
parent 87f568bdfe
commit 199312d326
+5 -1
View File
@@ -81,7 +81,11 @@ class Command extends Component
*/ */
public function exists(): bool public function exists(): bool
{ {
return count($this->search('fetch')) > 0; $data = $this->search('fetch');
if (!$data) {
return false;
}
return true;
} }
/** /**