4th repo with a complete working function that checks boolean and confirm value missing return