Add null check for factoid