public function hasWallet($email)
    {
        $event = new CheckAvailability($email);
        $this->dispatcher->dispatch('before.availability.check', $event);
        $result = $this->hipay->isAvailable($email, $event->getEntity());
        $this->dispatcher->dispatch('after.availability.check', $event);
        return !$result;
    }
public function hasWallet($email)
    {
        $event = new CheckAvailability($email);
        $this->dispatcher->dispatch('before.availability.check', $event);
        $result = $this->hipay->isAvailable($email, $event->getEntity());
        $this->dispatcher->dispatch('after.availability.check', $event);
        return !$result;
    }
public function hasWallet ( $ email ) { $ event = new CheckAvailability ( $ email ) ; $ this -> dispatcher -> dispatch ( 'before.availability.check' , $ event ) ; $ result = $ this -> hipay -> isAvailable ( $ email , $ event -> getEntity ( ) ) ; $ this -> dispatcher -> dispatch ( 'after.availability.check' , $ event ) ; return ! $ result ; }
Check if the vendor already has a wallet.

Dispatch the event <b>before.availability.check</b>
before sending the data to HiPay

@param string $email

@return bool
Check if the vendor already has a wallet .