javascript if not undefined or null