Change given/when back to if (deprecated in 5.18)