updated hasKey

i had some dumb code before