For clarity, this should be an ````if (operation)```` around the ````if```` on retval.