Ensuring `completion` exists before trying to call it