public function isClosure() { return is_object($this->command) && $this->command instanceof Closure; }