javascript check if not undefined or null