Hazel to run app A conditional on another app B?

I want app A to only ever run if app B is running.
- If app B for some reason crashes, app A should quit instantly.
- If I try to open app A, but B is not open, it should either i) warn me ii) not allow me to open A, or iii) open app B instead first.
Out of i)-iii), I have no preference, so any option, if possible to implement, would be fine for me.
Is this possible with Hazel, and if so, could someone help out a complete noob?
- If app B for some reason crashes, app A should quit instantly.
- If I try to open app A, but B is not open, it should either i) warn me ii) not allow me to open A, or iii) open app B instead first.
Out of i)-iii), I have no preference, so any option, if possible to implement, would be fine for me.
Is this possible with Hazel, and if so, could someone help out a complete noob?