diff --git a/Command.php b/Command.php index 9b05afd..2b5161e 100644 --- a/Command.php +++ b/Command.php @@ -81,7 +81,11 @@ class Command extends Component */ public function exists(): bool { - return count($this->search('fetch')) > 0; + $data = $this->search('fetch'); + if (!$data) { + return false; + } + return true; } /**