Added check if key is in table