I have a few thoughts on this. If it's an environment check then I think it should be enabled in dev, as opposed to disabled in prod. I also think it might be better to actually make it a config variable that can be set in each environment file so that it can easily be set on or off in new environments.