Use Package installed to filter according to whether a dependent package was installed or not on devices, and if the latest or previous releases were installed.
General
Type
Package installed
Package
Package to check if it has been installed on the local device.
Installed state
Latest release checks if the latest known version of the dependent package was installed on devices.
Any release checks if any release of the dependent package was installed on devices.
Not installed checks if the dependent package is not installed on devices.
Note that it is not mandatory for the dependent package to have a Install type of action set or action configured. You can make any type of configuration that installs the dependent package.