Make it a pop rather than a get then check the length of kwargs is 0.