use !== to compare undefined
ensure value is not null or undefined