Yes. This allows me to simply do 

   if (program.collection) { 
     console.log("I have collection"); 
   } else {
     console.log("i have a url");
   }