Check if collection->title is empty before using it.