check bibliolog is not null before writing data into