Google sheets check if there is anything

Have a look at this post.