epg need a NULL check. same for the other method