I've actually managed to refactor it in such a way that I am only doing `key in dictionary` so it would be a non-issue now.