I have found the KeyExist command, I am trying it out but I am currently seeing the same issue.