check if key exists before reading it
fix check if app is enabled