check if collection exists before trying to render

yeah, probably.  i will make the change