MySqli verifique se o delete foi bem -sucedido

$sql = "DELETE FROM art WHERE id='5'"; 
if($db->query($sql)=== TRUE) {
	    $message = "good"; // all worked good.
}else{
	    $message = "bad"; // didnt work because something was wrong
}
Poised Penguin