I think it would make sense to check whether HIDE_TOOLBAR is set to a non-empty value than any specific string