`if k in d` is much more efficient than `if k in d.keys()` because it will not running a method and allocate memory for the return of that method.

Thanks very much for this. =)