Added isDebug method to EnvironmentService