src/Console/ElasticMigrateCommand.php
protected function isAliasExists($name)
    {
        $payload = (new RawPayload())
            ->set('name', $name)
            ->get();

        return ElasticClient::indices()
            ->existsAlias($payload);
    }
protected function isAliasExists($name)
    {
        $payload = (new RawPayload())
            ->set('name', $name)
            ->get();

        return ElasticClient::indices()
            ->existsAlias($payload);
    }
protected function isAliasExists ( $ name ) { $ payload = ( new RawPayload ( ) ) -> set ( 'name' , $ name ) -> get ( ) ; return ElasticClient :: indices ( ) -> existsAlias ( $ payload ) ; }
Check if an alias exists.

@param string $name
@return bool
Check if an alias exists .