Add awaiting external dependency predicate

cc @myronmarston 
A blank line in between the `module` and `def` would be nice...