public function isConnected(ClientInterface $provider)
    {
        return $this->accounts != null && isset($this->accounts[$provider->getId()]);
    }
public function isConnected(ClientInterface $provider)
    {
        return $this->accounts != null && isset($this->accounts[$provider->getId()]);
    }
public function isConnected ( ClientInterface $ provider ) { return $ this -> accounts != null && isset ( $ this -> accounts [ $ provider -> getId ( ) ] ) ; }
Checks if provider already connected to user.

@param ClientInterface $provider

@return bool
Checks if provider already connected to user .