Resetting only if there's something to reset

... woops

@andresf Please review