I think `typeof strategy.prepare === 'function'` would be safer.