lib/CommunicationAdapter.php
protected function preSendToApiCheck()
    {
        if ($this->getAccount() === null) {
            throw new \Exception('Please provided an account');
        }

        if (!$this->getAccount()->isValid()) {
            throw new \Exception('Please provided valid account');
        }

        return true;
    }
protected function preSendToApiCheck()
    {
        if ($this->getAccount() === null) {
            throw new \Exception('Please provided an account');
        }

        if (!$this->getAccount()->isValid()) {
            throw new \Exception('Please provided valid account');
        }

        return true;
    }
Checks, if a valid account has been provided

@return bool
@throws \Exception