Make env_at a total function for less astonishment