You can use ExecuteScaler method of Command object and compare if result is null.
Editorial changes — reviews, status changes and edits — are shown to the author of this article and to the editors.