Check that data is not null