check for key presence