javascript check if something is not undefined