checking if the content values are not null instead