Check that hook exists before including the partial. Resolves bug #37.