Check block is not null