Let's say store has not set phone, i.e. `store.phone is None`. Result of `'{{ store.phone|escapejs }}'` is `'None'` what is not perfect for checking for presence in JavaScript. Conditional tag set the value to empty string and you can use `if (store.phone) //...`