call urlify only if there is something to urlify
(otherwise, js breaks when URLify is not imported)