protected function shouldSendMessage($message, $data = [])
    {
        if (! $this->events) {
            return true;
        }

        return $this->events->until(
            new Events\MessageSending($message, $data)
        ) !== false;
    }
protected function shouldSendMessage($message, $data = [])
    {
        if (! $this->events) {
            return true;
        }

        return $this->events->until(
            new Events\MessageSending($message, $data)
        ) !== false;
    }
protected function shouldSendMessage ( $ message , $ data = [ ] ) { if ( ! $ this -> events ) { return true ; } return $ this -> events -> until ( new Events \ MessageSending ( $ message , $ data ) ) !== false ; }
Determines if the message can be sent.

@param  \Swift_Message  $message
@param  array  $data
@return bool
Determines if the message can be sent .