javascript check if something is not null or undefined