if not THEME_NAME in ['', None] just as suggestion could be avoid error from env.json with THEME_NAME: ''