Squirrel away env checks to new helper