removed deprecated key_exists func