javascript check if variable exists and not empty