/**
  * Checks if provided event is an AFTER step with teardown that produced output.
  *
  * @param Event $event
  *
  * @return Boolean
  */
 private function isAfterStepWithOutput(Event $event)
 {
     if ($event instanceof AfterStepTested && ($this->stepSetupHadOutput || $event->hasOutput())) {
         $this->stepSetupHadOutput = false;
         return true;
     }
     return false;
 }