lib/Elastica/Node/Info.php
public function hasPlugin($name): bool
    {
        foreach ($this->getPlugins() as $plugin) {
            if ($plugin['name'] === $name) {
                return true;
            }
        }

        return false;
    }
public function hasPlugin($name): bool
    {
        foreach ($this->getPlugins() as $plugin) {
            if ($plugin['name'] === $name) {
                return true;
            }
        }

        return false;
    }
public function hasPlugin ( $ name ) : bool { foreach ( $ this -> getPlugins ( ) as $ plugin ) { if ( $ plugin [ 'name' ] === $ name ) { return true ; } } return false ; }
Check if the given plugin is installed on this node.

@param string $name plugin name

@return bool true if the plugin is installed, false otherwise
Check if the given plugin is installed on this node .