check if results are not null