Validating variable key presence