You can also
`var prepopulate_flag = (prepopulate_date === undefined) ? true : false;`