We can have a private function to perform this check and throw errors, might make it more readable when we have more env variables _Originally posted by @DawYeong in https://github.com/businext/businext.ai/pull/36#r615097044_