_.isEmpty(undefined) is true, also ? will only apply to the second clause. unless that's exactly what you want :)