Wrapping up the missing package check as a function.

Seems like it could be useful to invoke independently.