javascript test if not null or undefined