That rather should be: 

def update_state(id, transition, notice, mail = false)
  if mail
    check_mail_settings
  end
  ...
end

def check_mail_settings
  ...
end