Perhaps someone was specifically looking for a check on the connectivity of the connector.
DbConnection contains a State parameter that can be checked for ConnectionState.Open and if it is equal, it will work.
You can also use (try/catch), but the condition is less demanding.
if(con.State== ConnectionState.Open){}