public function hasFunction(string $name): bool
    {
        return $this->functions->exists(function (int $key, FunctionModelInterface $function) use ($name) {
            return $function->getName() === $name;
        });
    }
public function hasFunction(string $name): bool
    {
        return $this->functions->exists(function (int $key, FunctionModelInterface $function) use ($name) {
            return $function->getName() === $name;
        });
    }
public function hasFunction ( string $ name ) : bool { return $ this -> functions -> exists ( function ( int $ key , FunctionModelInterface $ function ) use ( $ name ) { return $ function -> getName ( ) === $ name ; } ) ; }
Check if a function exists.

@param string $name The function name.

@return bool True if it exists.
Check if a function exists .