use more graceful check function to verify key existence