Also hide output text when input is empty, not only when it's undefined