public function check($domain)
    {
        return $this->client
            ->query($domain)
            ->then(function ($result) use ($domain) {
                return Factory::create($domain, $result)->isAvailable();
            });
    }
public function check($domain)
    {
        return $this->client
            ->query($domain)
            ->then(function ($result) use ($domain) {
                return Factory::create($domain, $result)->isAvailable();
            });
    }
public function check ( $ domain ) { return $ this -> client -> query ( $ domain ) -> then ( function ( $ result ) use ( $ domain ) { return Factory :: create ( $ domain , $ result ) -> isAvailable ( ) ; } ) ; }
Checks domain availability.

@param string $domain
Checks domain availability .