Check whether the Key is set