Sure you could, but it all too often isn't done. The issue is often that the kwargs are passed forward to other functions. In that case, it's pretty much impossible to check for wrong keys unless all the functions know about each other.