private function isAfterStepWithOutput(Event $event)
    {
        if ($event instanceof AfterStepTested && ($this->stepSetupHadOutput || $event->hasOutput())) {
            $this->stepSetupHadOutput = false;

            return true;
        }

        return false;
    }