Sometimes two integrations must be installed in an specific order to work together correctly.
For that use-case, this utility accepts optional position and relativeTo parameters to check for the presence of one integration in relation to another.
Checking for the presence of an integration in relation to an uninstalled integration will result in an error.
With extended hooks, hasIntegration can receive the position and relative reference as optional positional parameters.
If a relative reference is not given the result will be relative to the current integration being defined.
As a standalone utility hasIntegration can receive the position and relative reference as optional fields in its parameter.
When a position is given, a relative reference must also be given, otherwise the utility will throw an error.