javascript check if number is not null or undefined