check observer is not null