Fixed mail rake if statement to prevent negative numbers