Add null check before check 'in list'