add a helper function that can check for env vars and raise an exception if the env var is either None or an empty string